def test_bad_entity(self): self.assertIsNone(ct.get_entity('1/0'))
def test_good_entity(self): self.assertIs(ct.get_entity('int'), int)
def test_paramtuple_float(self): # 18539: (a,b) becomes '.0' in code object; change that but not float def f((a,b), c=0.0): pass self.assertEqual(ct.get_arg_text(f), '(<tuple>, c=0.0)')