def test_zero_mul(self): a = {'a': 2.0, 'b': -4.0} n = 0.0 assert dict_mul(a, n) == {}
def test_mul(self): a = {'a': 2.0, 'b': -4.0} n = 1.5 assert dict_mul(a, n) == {'a': 3.0, 'b': -6.0}