Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: tools/telemetry/telemetry/user_story/user_story_set_unittest.py

Issue 946473002: Move base_dir to user_story_set, remove file_path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/user_story/user_story_set.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/user_story/user_story_set_unittest.py
diff --git a/tools/telemetry/telemetry/user_story/user_story_set_unittest.py b/tools/telemetry/telemetry/user_story/user_story_set_unittest.py
index be7d10380f16e20ac85f1655c4f296910948f42c..fd8b6b19b928fd220bc4138fcc802753ac7831f6 100644
--- a/tools/telemetry/telemetry/user_story/user_story_set_unittest.py
+++ b/tools/telemetry/telemetry/user_story/user_story_set_unittest.py
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import inspect
import os
import unittest
@@ -14,6 +15,11 @@ class UserStorySetFoo(user_story_set.UserStorySet):
pass
+class MockUserStorySet(user_story_set.UserStorySet):
+ def __init__(self):
+ super(MockUserStorySet, self).__init__()
+
+
class UserStorySetTest(unittest.TestCase):
def testUserStoryTestName(self):
@@ -30,6 +36,11 @@ class UserStorySetTest(unittest.TestCase):
self.assertTrue(os.path.isdir(base_dir))
self.assertEqual(base_dir, os.path.dirname(__file__))
+ def testFilePath(self):
+ uss = MockUserStorySet()
+ self.assertEqual(os.path.abspath(__file__),
+ uss.file_path)
+
def testCloudBucket(self):
blank_uss = user_story_set.UserStorySet()
self.assertEqual(blank_uss.bucket, None)
« no previous file with comments | « tools/telemetry/telemetry/user_story/user_story_set.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698