Style changes

This commit is contained in:
James Vega 2003-11-14 14:07:36 +00:00
parent 557e518a96
commit 882652ab63

View File

@ -56,16 +56,17 @@ if sqlite is not None:
self.assertRegexp('todo 1', self.assertRegexp('todo 1',
'Todo for tester: wash my car \(Added .*?\)') 'Todo for tester: wash my car \(Added .*?\)')
# Check that it lists all my tasks when given my name # Check that it lists all my tasks when given my name
self.assertResponse('todo tester', 'Todo for tester: ' self.assertResponse('todo tester',
'#1: wash my car') 'Todo for tester: #1: wash my car')
# Check pluralization # Check pluralization
self.assertNotError('todo add moo') self.assertNotError('todo add moo')
self.assertRegexp('todo tester', 'Todos for tester: ' self.assertRegexp('todo tester',
'#1: wash my car and #2: moo') 'Todos for tester: #1: wash my car and #2: moo')
# Check error # Check error
self.assertError('todo asfas') self.assertError('todo asfas')
self.assertResponse('todo asfas', 'Error: \'asfas\' is not a ' self.assertResponse('todo asfas',
'valid task id or username') 'Error: \'asfas\' is not a valid task id or '
'username')
# Check priority sorting # Check priority sorting
self.assertNotError('todo setpriority 1 100') self.assertNotError('todo setpriority 1 100')
self.assertNotError('todo setpriority 2 10') self.assertNotError('todo setpriority 2 10')
@ -84,23 +85,23 @@ if sqlite is not None:
self.assertRegexp('todo search task*', '#1: task number one') self.assertRegexp('todo search task*', '#1: task number one')
self.assertNotError('todo add task number two is much longer than' self.assertNotError('todo add task number two is much longer than'
' task number one') ' task number one')
self.assertRegexp('todo search task*','#1: task number one and #2:' self.assertRegexp('todo search task*',
' task number two is much longer than task ' '#1: task number one and #2: task number two is '
'number...') 'much longer than task number...')
self.assertRegexp('todo search --exact "task number one"', self.assertRegexp('todo search --exact "task number one"',
'#1: task number one') '#1: task number one')
self.assertError('todo search --regexp s/bustedregex') self.assertError('todo search --regexp s/bustedregex')
self.assertRegexp('todo search --regexp m/task/', '#1: task number' self.assertRegexp('todo search --regexp m/task/',
' one and #2: task number two is much longer ' '#1: task number one and #2: task number two is '
'than task number...') 'much longer than task number...')
def testSetPriority(self): def testSetPriority(self):
self.assertNotError('todo add --priority=1 moo') self.assertNotError('todo add --priority=1 moo')
self.assertRegexp('todo 1', 'moo, priority: 1 \(Added ' self.assertRegexp('todo 1',
'at .*?\)') 'moo, priority: 1 \(Added at .*?\)')
self.assertNotError('setpriority 1 50') self.assertNotError('setpriority 1 50')
self.assertRegexp('todo 1', 'moo, priority: 50 \(Added ' self.assertRegexp('todo 1',
'at .*?\)') 'moo, priority: 50 \(Added at .*?\)')
self.assertNotError('setpriority 1 0') self.assertNotError('setpriority 1 0')
self.assertRegexp('todo 1', 'moo \(Added at .*?\)') self.assertRegexp('todo 1', 'moo \(Added at .*?\)')