Download:
child 15:5462b64aeecd
parent 13:296897225fef
14:e8f91e4a0cb5 draft
Anton Shestakov <av6@dwimlabs.net>, Fri, 19 Oct 2018 01:30:42 +0800
tests: more tests for base commands

1 файлов изменено, 10 вставок(+), 4 удалений(-) [+]
test.py file | annotate | diff | comparison | revisions
--- a/test.py Fri Oct 19 01:27:03 2018 +0800
+++ b/test.py Fri Oct 19 01:30:42 2018 +0800
@@ -35,12 +35,18 @@
def testHghelp(self):
+ self.assertRegexp('hghelp verify', '.*verify the integrity.*')
self.assertNotError('hghelp foo')
+ self.assertHelp('hghelp')
+
+ def testBTS(self):
+ self.assertRegexp('bts url', 'https?://.*')
+ self.assertHelp('bts')
def testGlossary(self):
- self.assertNotError('glossary foo')
- m = self.getMsg('glossary foo')
- print m
- self.assertError('glossary foo')
+ self.assertResponse('glossary cset',
+ 'A common abbreviation of the term changeset.')
+ self.assertResponse('glossary foo', 'no match found')
+ self.assertHelp('glossary')
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: