Example #1
0
    def test_generate(self):
        g = GuessNumbers(name='Test numbers', text='selected nums')
        g.generate()
        print(g.update_date)
        print(g.lottos)

        self.assertTrue(len(g.lottos) < 20)
Example #2
0
    def test_generate(self):
        g = GuessNumbers(name='Test numbers', text='selected numbers')
        g.generate()

        print(g.update_date)
        print(g.lottos)  # g.lottos #6개씩 5set 총 30개의 숫자 리스트 str

        self.assertTrue(len(g.lottos) > 20)
Example #3
0
    def test_generate(self):
        g = GuessNumbers(name="Test numbers", text='selected numbers')
        g.generate()
        #g.lottos #-> 6개씩 5set 총 3개 숫자의 리스트의 str
        print(g.update_date)
        print(g.lottos)

        self.assertTrue(len(g.lottos) > 20)  #run test를 했을 때 OK라고 뜸 !
Example #4
0
 def test_generate(self):
     t = GuessNumbers(name='apple', text='pineapple')
     t.generate()
     print(t.update_date)
     print(t.lottos)
     self.assertTrue(len(t.lottos) > 20)