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

Unified Diff: bin/loman_unittest.py

Issue 3385001: loman: don't report error when adding an exact duplicate. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 3 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 | « bin/loman.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/loman_unittest.py
diff --git a/bin/loman_unittest.py b/bin/loman_unittest.py
index fc74ac7af2bc86fa93093aa01c97f5d17ead1381..4782ac32b50af694a99edd94f019f39f4500325b 100755
--- a/bin/loman_unittest.py
+++ b/bin/loman_unittest.py
@@ -52,7 +52,7 @@ class LocalManifestTest(unittest.TestCase):
ptree = loman.LocalManifest('<manifest>\n</manifest>')
ptree.Parse()
ptree.AddWorkonProject('foo', 'path/to/foo')
- self.assertTrue(not ptree.AddWorkonProject('foo', 'path/to/foo'))
+ self.assertTrue(ptree.AddWorkonProject('foo', 'path/to/foo'))
self.assertTrue(not ptree.AddWorkonProject('foo', 'path/foo'))
self.assertTrue(not ptree.AddWorkonProject('foobar', 'path/to/foo'))
@@ -102,9 +102,11 @@ class MainTest(unittest.TestCase):
os.fsync(temp.fileno())
loman.main(['loman', 'add', '--workon', '-f',
temp.name, 'foo', 'path/to/foo'])
+ loman.main(['loman', 'add', '--workon', '-f',
+ temp.name, 'foo', 'path/to/foo'])
self.assertRaises(SystemExit, loman.main,
['loman', 'add', '--workon', '-f',
- temp.name, 'foo', 'path/to/foo'])
+ temp.name, 'foo', 'path/foo'])
if __name__ == '__main__':
« no previous file with comments | « bin/loman.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698