Exemplo n.º 1
0
 def test_latestupdate_delete(self):
     for i in range(10):
         PathFactory.create()
     t1 = dbnow()
     self.assertTrue(t1 > Path.latest_updated())
     (Path.objects.all()[0]).delete()
     self.assertFalse(t1 > Path.latest_updated())
Exemplo n.º 2
0
 def test_latestupdate_delete(self):
     for i in range(10):
         PathFactory.create()
     t1 = dbnow()
     self.assertTrue(t1 > Path.latest_updated())
     (Path.objects.all()[0]).delete()
     self.assertFalse(t1 > Path.latest_updated())
Exemplo n.º 3
0
 def test_latest_updated_bypass_invisible(self):
     self.assertEqual(Path.latest_updated(), self.path.date_update)
Exemplo n.º 4
0
 def test_latest_updated_bypass_invisible(self):
     self.assertEqual(Path.latest_updated(), self.path.date_update)