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

Unified Diff: mojo/devtools/common/devtoolslib/shell_arguments_unittest.py

Issue 1253273003: Unify casing of function names in devtools. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase. Created 5 years, 5 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 | « mojo/devtools/common/devtoolslib/shell_arguments.py ('k') | mojo/devtools/common/mojo_run » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/devtools/common/devtoolslib/shell_arguments_unittest.py
diff --git a/mojo/devtools/common/devtoolslib/shell_arguments_unittest.py b/mojo/devtools/common/devtoolslib/shell_arguments_unittest.py
index 511ad441cc3849c0d22e4c1dde53af9d33e0824c..d1b5f37720d7a2ce195b02177b56361bdaf448db 100644
--- a/mojo/devtools/common/devtoolslib/shell_arguments_unittest.py
+++ b/mojo/devtools/common/devtoolslib/shell_arguments_unittest.py
@@ -11,7 +11,7 @@ try:
imp.find_module("devtoolslib")
except ImportError:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from devtoolslib.shell_arguments import AppendToArgument
+from devtoolslib import shell_arguments
class AppendToArgumentTest(unittest.TestCase):
@@ -22,21 +22,24 @@ class AppendToArgumentTest(unittest.TestCase):
key = '--something='
value = 'val'
expected_result = ['--something=val']
- self.assertEquals(expected_result, AppendToArgument(arguments, key, value))
+ self.assertEquals(expected_result, shell_arguments.append_to_argument(
+ arguments, key, value))
def testAppendToNonEmpty(self):
arguments = ['--other']
key = '--something='
value = 'val'
expected_result = ['--other', '--something=val']
- self.assertEquals(expected_result, AppendToArgument(arguments, key, value))
+ self.assertEquals(expected_result, shell_arguments.append_to_argument(
+ arguments, key, value))
def testAppendToExisting(self):
arguments = ['--something=old_val']
key = '--something='
value = 'val'
expected_result = ['--something=old_val,val']
- self.assertEquals(expected_result, AppendToArgument(arguments, key, value))
+ self.assertEquals(expected_result, shell_arguments.append_to_argument(
+ arguments, key, value))
if __name__ == "__main__":
« no previous file with comments | « mojo/devtools/common/devtoolslib/shell_arguments.py ('k') | mojo/devtools/common/mojo_run » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698