def test_convert_dtype_invalid(self): with self.assertRaisesRegex(TypeError, "Failed to convert"): Feature.convert_dtype("not a python data type")
def test_convert_dtype(self): self.assertEqual(Feature.convert_dtype("float"), float)