def test_number(): assert ImImagePlugin.number("1.2") == 1.2
def test_number(self): self.assertEqual(1.2, ImImagePlugin.number("1.2"))