def test_get_last_closed(self): till = Till(store=self.store, branch=self.current_branch, station=self.current_station) till.open_till(self.current_user) till.close_till(self.current_user) self.assertEqual( Till.get_last_closed(self.store, self.current_station), till)
def testGetLastClosed(self): till = Till(store=self.store, station=get_current_station(self.store)) till.open_till() till.close_till() self.assertEquals(Till.get_last_closed(self.store), till)
def test_get_last_closed(self): till = Till(store=self.store, station=get_current_station(self.store)) till.open_till() till.close_till() self.assertEqual(Till.get_last_closed(self.store), till)