Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)