Exemplo n.º 1
0
 def test_find_last_synchronization_date(self):
     sync = synchronization.Synchronization.objects.get(pk=self.latest_sync_id)
     self.assertEquals(sync.date, synchronization.find_last_synchronization_date())
Exemplo n.º 2
0
 def test_find_last_syncrhonization_date(self):
     self.assertRaises(ObjectDoesNotExist, synchronization.find_last_synchronization_date())
Exemplo n.º 3
0
 def test_find_last_synchronization_date(self):
     self.assertIsNone(synchronization.find_last_synchronization_date())