Example #1
0
 def test_negation_simple(self):
     obtained = negate({'a':2, 'b':-7})
     expected = {'a':-2, 'b':7}
     self.assertTrue(obtained == expected,
                     "bad negation:\n{0!s}".format(repr(obtained)))
Example #2
0
 def test_negation_empty(self):
     obtained = negate({})
     expected = {}
     self.assertTrue(obtained == expected,
                     "bad negation:\n{0!s}".format(repr(obtained)))