예제 #1
0
	def test_operand_should_in_range_1_to_9(self):
		random = Randomizer()
		self.assertTrue(random.operand() >= 1)
		self.assertTrue(random.operand() <= 9)
예제 #2
0
 def test_operand_should_in_range_1_to_9(self):
     random = Randomizer()
     self.assertTrue(random.operand() >= 1)
     self.assertTrue(random.operand() <= 9)
예제 #3
0
	def test_pattern_should_not_more_than_2(self):
		random = Randomizer()
		self.assertTrue(random.pattern() <= 2)
		self.assertTrue(random.pattern() >= 1)
예제 #4
0
 def test_pattern_should_not_more_than_2(self):
     random = Randomizer()
     self.assertTrue(random.pattern() <= 2)
     self.assertTrue(random.pattern() >= 1)