tests: Fix asserted strings in context tests
This commit is contained in:
committed by
Paul Beckingham
parent
1a0f479394
commit
9748fa2ab1
@@ -105,7 +105,7 @@ class ContextManagementTest(TestCase):
|
||||
output = self.t(('context', 'delete', 'work'))[1]
|
||||
|
||||
# Assert correct output
|
||||
self.assertIn("Context 'work' undefined.", output)
|
||||
self.assertIn("Context 'work' deleted.", output)
|
||||
|
||||
# Assert that taskrc does not countain context work definition
|
||||
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
||||
@@ -118,7 +118,7 @@ class ContextManagementTest(TestCase):
|
||||
output = self.t.runError(('context', 'delete', 'work'))[1]
|
||||
|
||||
# Assert correct output
|
||||
self.assertIn("Context 'work' was not undefined.", output)
|
||||
self.assertIn("Context 'work' not deleted.", output)
|
||||
|
||||
# Assert that taskrc does not countain context work definition
|
||||
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
||||
@@ -133,7 +133,7 @@ class ContextManagementTest(TestCase):
|
||||
output = self.t(('context', 'delete', 'work'))[1]
|
||||
|
||||
# Assert correct output
|
||||
self.assertIn("Context 'work' undefined.", output)
|
||||
self.assertIn("Context 'work' deleted.", output)
|
||||
|
||||
# Assert that taskrc does not countain context work definition
|
||||
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
||||
|
||||
Reference in New Issue
Block a user