def test_prime_num_of_div_1(self):
		self.assertEqual(True, solution.prime_number_of_divisors(7))
Exemple #2
0
 def test_with_2(self):
     self.assertEqual(True, solution.prime_number_of_divisors(2))
Exemple #3
0
 def test_false(self):
     self.assertFalse(solution.prime_number_of_divisors(8))
Exemple #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))
Exemple #7
0
 def test0(self):
     self.assertTrue(prime_number_of_divisors(7))
Exemple #8
0
 def test_two(self):
     self.assertFalse(prime_number_of_divisors(8))
Exemple #9
0
 def test_three(self):
     self.assertTrue(prime_number_of_divisors(9))
Exemple #10
0
 def test_two(self):
     self.assertEqual(False, prime_number_of_divisors(8))
Exemple #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))
Exemple #12
0
 def test_one(self):
     self.assertEqual(True, prime_number_of_divisors(7))
Exemple #13
0
 def test_tree(self):
     self.assertEqual(True, prime_number_of_divisors(9))
Exemple #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))
Exemple #15
0
 def test_solution(self):
     self.assertEqual(True,prime_number_of_divisors(28))
     self.assertEqual(True,prime_number_of_divisors(9))
Exemple #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)
Exemple #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))
Exemple #20
0
	def test_3(self):
		self.assertEqual(True, prime_number_of_divisors(9))
Exemple #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))
Exemple #23
0
 def test_negative_number(self):
     self.assertEqual(False, solution.prime_number_of_divisors(-1241))
Exemple #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))
Exemple #25
0
 def test_with_1(self):
     self.assertEqual(False, solution.prime_number_of_divisors(1))
 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))
Exemple #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))
Exemple #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))
Exemple #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))
	def test_not_prime(self):
		self.assertTrue(not prime_number_of_divisors(8))
Exemple #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))
Exemple #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))
Exemple #40
0
 def test_with_composite_numbers(self):
     self.assertTrue(solution.prime_number_of_divisors(4))
     self.assertFalse(solution.prime_number_of_divisors(12))
Exemple #41
0
 def test1(self):
     self.assertFalse(prime_number_of_divisors(8))
Exemple #42
0
 def test_with_prime_numbers(self):
     self.assertTrue(solution.prime_number_of_divisors(101))
     self.assertTrue(solution.prime_number_of_divisors(13))
Exemple #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))
Exemple #46
0
 def test_for_sum(self):
     self.assertEqual(False, solution.prime_number_of_divisors(1241))