Ejemplo n.º 1
0
 def assertPublished(self):
     presentations = Presentation.objects.filter(Presentation.published_Q(), owner=self.user)
     self.assertEqual(1, presentations.count())
     self.assertEqual(self.presentation.id, presentations[0].id)
Ejemplo n.º 2
0
 def assertNotPublished(self):
     presentations = Presentation.objects.filter(Presentation.published_Q(), owner=self.user)
     self.assertEqual(0,presentations.count())