Rev 191: Added test for a revision id not in the given branch. in http://bzr.daniel-watkins.co.uk/pqm/tag
Daniel Watkins
daniel at daniel-watkins.co.uk
Tue Jul 22 21:30:24 BST 2008
At http://bzr.daniel-watkins.co.uk/pqm/tag
------------------------------------------------------------
revno: 191
revision-id: daniel at daniel-watkins.co.uk-20080722202855-59qfj76n4m9c9ed2
parent: daniel at daniel-watkins.co.uk-20080722202728-yxqk8rniudh21fzb
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: tag
timestamp: Tue 2008-07-22 21:28:55 +0100
message:
Added test for a revision id not in the given branch.
-------------- next part --------------
=== modified file 'pqm/tests/test_pqm.py'
--- a/pqm/tests/test_pqm.py 2008-07-22 20:27:28 +0000
+++ b/pqm/tests/test_pqm.py 2008-07-22 20:28:55 +0000
@@ -455,6 +455,12 @@
self.assertEqual("'Revision number '42' does not exist in the branch"
" 'foo'.'", str(e))
+ def test_TagCommand_bad_revno(self):
+ command = self.get_tag_command('bad-revid', 'tag')
+ e = self.assertRaises(PQMException, command.run()
+ self.assertEqual("'Revision 'bad-revid' does not exist in the branch"
+ " 'foo'.'", str(e))
+
class FunctionalTestCommandRunner(unittest.TestCase):
More information about the bazaar-commits
mailing list