def toss_private_test(self):
     self.assertEqual(
         0,
         len(self.retrieve_draw().results)
     )
     self.req.GET = {"draw_id": self.test_draw._id}
     toss_draw(self.req)
     self.assertEqual(
         1,
         len(self.retrieve_draw().results)
     )
 def toss_not_owned_test(self):
     self.assertEqual(
         0,
         len(self.retrieve_draw().results)
     )
     self.test_draw.owner = 555
     self._driver.save_draw(self.test_draw)
     self.req.GET = {"draw_id": self.test_draw._id}
     self.assertRaises(
         PermissionDenied,
         lambda: toss_draw(self.req)
     )