def test_prime_num_of_div_1(self):
		self.assertEqual(True, solution.prime_number_of_divisors(7))
Beispiel #2
0
 def test_with_2(self):
     self.assertEqual(True, solution.prime_number_of_divisors(2))
Beispiel #3
0
 def test_false(self):
     self.assertFalse(solution.prime_number_of_divisors(8))
Beispiel #4
0
 def test_prime_number_of_divisors(self):
     self.assertEqual(prime_number_of_divisors(7), True)
     self.assertEqual(prime_number_of_divisors(8), False)
     self.assertEqual(prime_number_of_divisors(9), True)
     self.assertEqual(prime_number_of_divisors(22), False)
 def test_prime_num_of_div_2(self):
     self.assertEqual(False, solution.prime_number_of_divisors(8))
 def test_false(self):
     self.assertFalse(solution.prime_number_of_divisors(8))
Beispiel #7
0
 def test0(self):
     self.assertTrue(prime_number_of_divisors(7))
Beispiel #8
0
 def test_two(self):
     self.assertFalse(prime_number_of_divisors(8))
Beispiel #9
0
 def test_three(self):
     self.assertTrue(prime_number_of_divisors(9))
Beispiel #10
0
 def test_two(self):
     self.assertEqual(False, prime_number_of_divisors(8))
Beispiel #11
0
 def test_prime_number_of_divisors(self):
     self.assertTrue(solution.prime_number_of_divisors(7))
     self.assertFalse(solution.prime_number_of_divisors(8))
     self.assertTrue(solution.prime_number_of_divisors(9))
Beispiel #12
0
 def test_one(self):
     self.assertEqual(True, prime_number_of_divisors(7))
Beispiel #13
0
 def test_tree(self):
     self.assertEqual(True, prime_number_of_divisors(9))
Beispiel #14
0
 def test_truth(self):
     self.assertEqual(True, solution.prime_number_of_divisors(7))
     self.assertEqual(True, solution.prime_number_of_divisors(29))
     self.assertEqual(True, solution.prime_number_of_divisors(31))
     self.assertEqual(False, solution.prime_number_of_divisors(8))
     self.assertEqual(True, solution.prime_number_of_divisors(0))
Beispiel #15
0
 def test_solution(self):
     self.assertEqual(True,prime_number_of_divisors(28))
     self.assertEqual(True,prime_number_of_divisors(9))
Beispiel #16
0
 def test_one(self):
     self.assertTrue(prime_number_of_divisors(7))
	def test_prime_number_of_divisors_8(self):
		self.assertEqual("False", solution.prime_number_of_divisors(8))
 def test_prime_number_of_divisors(self):
     self.assertEqual(prime_number_of_divisors(7), True)
     self.assertEqual(prime_number_of_divisors(8), False)
     self.assertEqual(prime_number_of_divisors(9), True)
     self.assertEqual(prime_number_of_divisors(22), False)
Beispiel #19
0
 def test_solution(self):
     self.assertEqual(True, prime_number_of_divisors(7))
     self.assertEqual(False, prime_number_of_divisors(8))
     self.assertEqual(True, prime_number_of_divisors(9))
Beispiel #20
0
	def test_3(self):
		self.assertEqual(True, prime_number_of_divisors(9))
Beispiel #21
0
 def testing_prime_num_of_div_8(self):
     self.assertFalse(prime_number_of_divisors(8))
 def test_three(self):
     self.assertTrue(prime_number_of_divisors(9))
Beispiel #23
0
 def test_negative_number(self):
     self.assertEqual(False, solution.prime_number_of_divisors(-1241))
Beispiel #24
0
 def test_prime_number_of_divisors(self):
     self.assertTrue(True, prime_number_of_divisors(7))
     # True
     self.assertFalse(False, prime_number_of_divisors(8))
     # False
     self.assertTrue(True, prime_number_of_divisors(9))
Beispiel #25
0
 def test_with_1(self):
     self.assertEqual(False, solution.prime_number_of_divisors(1))
Beispiel #26
0
 def test_prime_number_of_divisors(self):
     self.assertTrue(prime_number_of_divisors(7))
     self.assertTrue(not prime_number_of_divisors(8))
     self.assertTrue(prime_number_of_divisors(9))
     self.assertTrue(not prime_number_of_divisors(1))
     self.assertTrue(prime_number_of_divisors(2))
Beispiel #27
0
 def test_problem_statement_cases(self):
     self.assertEqual(True, prime_number_of_divisors(7))
     self.assertEqual(False, prime_number_of_divisors(8))
     self.assertEqual(True, prime_number_of_divisors(9))
 def test_for_sum(self):
     self.assertEqual(False,solution.prime_number_of_divisors(1241))
Beispiel #29
0
 def test_true(self):
     self.assertTrue(solution.prime_number_of_divisors(7))
 def test_negative_number(self):
     self.assertEqual(False,solution.prime_number_of_divisors(-1241))
	def test_prime_num_of_div_2(self):
		self.assertEqual(False, solution.prime_number_of_divisors(8))
 def test_truth(self):
     self.assertEqual(True,solution.prime_number_of_divisors(7))
     self.assertEqual(True,solution.prime_number_of_divisors(29))
     self.assertEqual(True,solution.prime_number_of_divisors(31))
     self.assertEqual(False,solution.prime_number_of_divisors(8))
     self.assertEqual(True,solution.prime_number_of_divisors(0))
	def test_prime_number_of_divisors_7(self):
		self.assertEqual("True", solution.prime_number_of_divisors(7))
Beispiel #34
0
 def test_problem_statement_cases(self):
     self.assertEqual(True, prime_number_of_divisors(7))
     self.assertEqual(False, prime_number_of_divisors(8))
     self.assertEqual(True, prime_number_of_divisors(9))
Beispiel #35
0
	def test_not_prime(self):
		self.assertTrue(not prime_number_of_divisors(8))
Beispiel #36
0
	def test_prime_number_of_divisors_0(self):
		self.assertEqual(True,  prime_number_of_divisors(7))
 def test_true(self):
     self.assertTrue(solution.prime_number_of_divisors(7))
Beispiel #38
0
	def test_prime_number_of_divisors_1(self):
		self.assertEqual(False, prime_number_of_divisors(8))
 def test_prime_number_of_divisors(self):
     self.assertEqual(True, solution.prime_number_of_divisors(7))
     self.assertEqual(False, solution.prime_number_of_divisors(8))
     self.assertEqual(True, solution.prime_number_of_divisors(9))
Beispiel #40
0
 def test_with_composite_numbers(self):
     self.assertTrue(solution.prime_number_of_divisors(4))
     self.assertFalse(solution.prime_number_of_divisors(12))
Beispiel #41
0
 def test1(self):
     self.assertFalse(prime_number_of_divisors(8))
Beispiel #42
0
 def test_with_prime_numbers(self):
     self.assertTrue(solution.prime_number_of_divisors(101))
     self.assertTrue(solution.prime_number_of_divisors(13))
Beispiel #43
0
 def testing_prime_num_of_div_9(self):
     self.assertTrue(prime_number_of_divisors(9))
 def test_prime_num_of_div_1(self):
     self.assertEqual(True, solution.prime_number_of_divisors(7))
 def test_prime_number_of_divisors(self):
     self.assertTrue(solution.prime_number_of_divisors(7))
     self.assertFalse(solution.prime_number_of_divisors(8))
     self.assertTrue(solution.prime_number_of_divisors(9))
Beispiel #46
0
 def test_for_sum(self):
     self.assertEqual(False, solution.prime_number_of_divisors(1241))