def test_reset(self): self.add_line(1, 10, 0) self.assertFalse(ProductionLine._data) ProductionLine.get_const_production_line(1) self.assertTrue(ProductionLine._data) ProductionLine.reset() self.assertFalse(ProductionLine._data)
def test_reset(self): self.add_line(1, 10, 0) self.assertFalse(ProductionLine.data) ProductionLine.load_data(1) self.assertTrue(ProductionLine.data) ProductionLine.reset() self.assertFalse(ProductionLine.data)
def setUp(self): """Clear ProductionLine cache.""" ProductionLine.reset() super(TestProductionLine, self).setUp()