初始要求:
代码:
def get_config_mocked(cls, color, size):
self.assertEqual(Car, cls)
with mock.patch('Car.get_config',classmethod(get_config_mocked)) as mocked_method:
Car.dosometing()
mocked_method.assert_called_once() # method does not exist
问题: