def test_load(self): obj = mock.MagicMock() hdf5.load_hdf5(self.temp_file_path, obj) self.assertEqual(obj.serialize.call_count, 1) (serializer,), _ = obj.serialize.call_args self.assertIsInstance(serializer, hdf5.HDF5Deserializer)
def test_load(self): obj = mock.MagicMock() hdf5.load_hdf5(self.temp_file_path, obj) self.assertEqual(obj.serialize.call_count, 1) (serializer, ), _ = obj.serialize.call_args self.assertIsInstance(serializer, hdf5.HDF5Deserializer)