tests: Fix asserted strings in context tests

This commit is contained in:
Tomas Babej 2015-02-24 07:30:56 +01:00 committed by Paul Beckingham
parent 1a0f479394
commit 9748fa2ab1

View file

@ -105,7 +105,7 @@ class ContextManagementTest(TestCase):
output = self.t(('context', 'delete', 'work'))[1] output = self.t(('context', 'delete', 'work'))[1]
# Assert correct output # Assert correct output
self.assertIn("Context 'work' undefined.", output) self.assertIn("Context 'work' deleted.", output)
# Assert that taskrc does not countain context work definition # Assert that taskrc does not countain context work definition
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content)) 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] output = self.t.runError(('context', 'delete', 'work'))[1]
# Assert correct output # 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 # Assert that taskrc does not countain context work definition
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content)) 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] output = self.t(('context', 'delete', 'work'))[1]
# Assert correct output # Assert correct output
self.assertIn("Context 'work' undefined.", output) self.assertIn("Context 'work' deleted.", output)
# Assert that taskrc does not countain context work definition # Assert that taskrc does not countain context work definition
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content)) self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))