Fixed failure (used testHelp) and added an encoding so Python doesn't complain.

This commit is contained in:
Jeremy Fincher 2003-10-24 21:28:12 +00:00
parent 094bdee30b
commit 388da451f2
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding:iso-8859-1 -*-
### ###
# Copyright (c) 2002, Stéphan Kochen # Copyright (c) 2002, Stéphan Kochen

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding:iso-8859-1 -*-
### ###
# Copyright (c) 2003, Stéphan Kochen # Copyright (c) 2003, Stéphan Kochen
@ -74,8 +75,8 @@ if sqlite is not None:
self.assertError('poll delete blah') self.assertError('poll delete blah')
def testVote(self): def testVote(self):
self.assertHelp('poll vote 1 blah')
self.assertError('poll vote blah Yes') self.assertError('poll vote blah Yes')
self.assertRegexp('poll vote 1 blah', '^vote <id>')
def testResults(self): def testResults(self):
self.assertError('poll results blah') self.assertError('poll results blah')