Fixed test to match new output.

This commit is contained in:
Jeremy Fincher 2003-10-24 22:08:15 +00:00
parent 5ddd26cc69
commit fa5ac0a885
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ class Todo(callbacks.Privmsg):
priority = ", priority: %s" % pri
added_time = time.strftime(conf.humanTimestampFormat,
time.localtime(int(added_at)))
s = "%s%s (Added at: %s)" % (task, priority, added_time)
s = "%s%s (Added at %s)" % (task, priority, added_time)
irc.reply(msg, s)
else:
cursor = self.db.cursor()

View File

@ -86,7 +86,7 @@ if sqlite is not None:
self.assertRegexp('todo 1', 'moo, priority: 50 \(Added '
'at: .*?\)')
self.assertNotError('setpriority 1 0')
self.assertRegexp('todo 1', 'moo \(Added at: .*?\)')
self.assertRegexp('todo 1', 'moo \(Added at .*?\)')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: