def test_operand_should_in_range_1_to_9(self): random = Randomizer() self.assertTrue(random.operand() >= 1) self.assertTrue(random.operand() <= 9)
def test_pattern_should_not_more_than_2(self): random = Randomizer() self.assertTrue(random.pattern() <= 2) self.assertTrue(random.pattern() >= 1)