Ejemplo n.º 1
0
    def test_get_draw_date(self):
        mega_obj = models.mega_millions(self.game, self.num_string, self.megaplier, self.draw_date)

        # Ensure that draw_date is a date object
        self.assertEqual(mega_obj.get_draw_date().year,2013)
        self.assertEqual(mega_obj.get_draw_date().month,4)
        self.assertEqual(mega_obj.get_draw_date().day,9)
Ejemplo n.º 2
0
    def test_get_draw_date(self):
        mega_obj = models.mega_millions(self.game, self.num_string,
                                        self.megaplier, self.draw_date)

        # Ensure that draw_date is a date object
        self.assertEqual(mega_obj.get_draw_date().year, 2013)
        self.assertEqual(mega_obj.get_draw_date().month, 4)
        self.assertEqual(mega_obj.get_draw_date().day, 9)
Ejemplo n.º 3
0
 def test_get_megaplier(self):
     mega_obj = models.mega_millions(self.game, self.num_string, self.megaplier, self.draw_date)
     self.assertEqual(mega_obj.get_megaplier(),'4');
Ejemplo n.º 4
0
 def test_get_numbers(self):
     mega_obj = models.mega_millions(self.game, self.num_string, self.megaplier, self.draw_date)
     self.assertEqual(mega_obj.get_numbers(),['17','30','41','48','54'])
Ejemplo n.º 5
0
 def test_create(self):
     mega_obj = models.mega_millions(self.game, self.num_string, self.megaplier, self.draw_date)
     self.assertEqual(mega_obj.get_game(),'Mega Millions')
Ejemplo n.º 6
0
 def test_get_megaplier(self):
     mega_obj = models.mega_millions(self.game, self.num_string,
                                     self.megaplier, self.draw_date)
     self.assertEqual(mega_obj.get_megaplier(), '4')
Ejemplo n.º 7
0
 def test_get_numbers(self):
     mega_obj = models.mega_millions(self.game, self.num_string,
                                     self.megaplier, self.draw_date)
     self.assertEqual(mega_obj.get_numbers(),
                      ['17', '30', '41', '48', '54'])
Ejemplo n.º 8
0
 def test_create(self):
     mega_obj = models.mega_millions(self.game, self.num_string,
                                     self.megaplier, self.draw_date)
     self.assertEqual(mega_obj.get_game(), 'Mega Millions')