diff options
Diffstat (limited to 'testtools/tests/test_testcase.py')
| -rw-r--r-- | testtools/tests/test_testcase.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testtools/tests/test_testcase.py b/testtools/tests/test_testcase.py index 185b726..34ef678 100644 --- a/testtools/tests/test_testcase.py +++ b/testtools/tests/test_testcase.py @@ -495,14 +495,14 @@ class TestAssertions(TestCase): def test_assertIs_fails(self): # assertIs raises assertion errors if one object is not identical to # another. - self.assertFails('None is not 42', self.assertIs, None, 42) + self.assertFails('42 is not None', self.assertIs, None, 42) self.assertFails('[42] is not [42]', self.assertIs, [42], [42]) def test_assertIs_fails_with_message(self): # assertIs raises assertion errors if one object is not identical to # another, and includes a user-supplied message, if it's provided. self.assertFails( - 'None is not 42: foo bar', self.assertIs, None, 42, 'foo bar') + '42 is not None: foo bar', self.assertIs, None, 42, 'foo bar') def test_assertIsNot(self): # assertIsNot asserts that an object is not identical to another @@ -712,7 +712,7 @@ class TestAssertions(TestCase): def test_assertIsNone(self): self.assertIsNone(None) - expected_error = 'None is not 0' + expected_error = '0 is not None' self.assertFails(expected_error, self.assertIsNone, 0) def test_assertIsNotNone(self): |
