def test_reset(self): # test batch = Batch() batch.items = {'A': 1} batch.reset() # validation self.assertEqual(batch.items, {})