diff options
Diffstat (limited to 'Lib/test/test_unary.py')
-rw-r--r-- | Lib/test/test_unary.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/test/test_unary.py b/Lib/test/test_unary.py index d8e86a9..dbefe62 100644 --- a/Lib/test/test_unary.py +++ b/Lib/test/test_unary.py @@ -7,24 +7,24 @@ class UnaryOpTestCase(unittest.TestCase): def test_negative(self): self.assert_(-2 == 0 - 2) - self.assert_(-0 == 0) - self.assert_(--2 == 2) + self.assertEqual(-0, 0) + self.assertEqual(--2, 2) self.assert_(-2 == 0 - 2) self.assert_(-2.0 == 0 - 2.0) self.assert_(-2j == 0 - 2j) def test_positive(self): - self.assert_(+2 == 2) - self.assert_(+0 == 0) - self.assert_(++2 == 2) - self.assert_(+2 == 2) - self.assert_(+2.0 == 2.0) - self.assert_(+2j == 2j) + self.assertEqual(+2, 2) + self.assertEqual(+0, 0) + self.assertEqual(++2, 2) + self.assertEqual(+2, 2) + self.assertEqual(+2.0, 2.0) + self.assertEqual(+2j, 2j) def test_invert(self): self.assert_(-2 == 0 - 2) - self.assert_(-0 == 0) - self.assert_(--2 == 2) + self.assertEqual(-0, 0) + self.assertEqual(--2, 2) self.assert_(-2 == 0 - 2) def test_no_overflow(self): |