def test_sum_of_divisors(self): self.assertEqual(15, sum_of_divisors(8)) # 15 self.assertEqual(8, sum_of_divisors(7)) # 8 self.assertEqual(1, sum_of_divisors(1)) # 1 self.assertEqual(2340, sum_of_divisors(1000))
def test_sum_of_divisors(self): self.assertEqual(15, sum_of_divisors(8)) self.assertEqual(8, sum_of_divisors(7)) self.assertEqual(1, sum_of_divisors(1)) self.assertEqual(2340, sum_of_divisors(1000)) self.assertEqual(0, sum_of_divisors(0)) self.assertEqual(6, sum_of_divisors(5))
def test_problem_statement_cases(self): self.assertEqual(15, sum_of_divisors(8)) self.assertEqual(8, sum_of_divisors(7)) self.assertEqual(1, sum_of_divisors(1)) self.assertEqual(2340, sum_of_divisors(1000))
def test_sum_of_divisors2(self): self.assertEqual(93, solution.sum_of_divisors(50))
def test_sum_of_divisors5(self): self.assertEqual(156, solution.sum_of_divisors(99))
def test_sum_of_divisors3(self): self.assertEqual(217, solution.sum_of_divisors(100))
def test_sum_of_divisors1(self): self.assertEqual(28, solution.sum_of_divisors(12))
def test_sum_of_divisors(self): self.assertEqual(2340, solution.sum_of_divisors(1000)) self.assertEqual(15, solution.sum_of_divisors(8))
def test_sum_of_divisors_of_prime_big_number_23(self): self.assertEqual(solution.sum_of_divisors(23),24)
def test_vour(self): self.assertEquals(2340, sum_of_divisors(1000))
def test_tree(self): self.assertEquals(1, sum_of_divisors(1))
def test_not_prime(self): self.assertEqual(15,sum_of_divisors(8)) self.assertEqual(2340,sum_of_divisors(1000))
def test_prime(self): self.assertEqual(8,sum_of_divisors(7)) self.assertEqual(1,sum_of_divisors(1))
def test_solution(self): self.assertEqual(15, sum_of_divisors(8)) self.assertEqual(8, sum_of_divisors(7)) self.assertEqual(1, sum_of_divisors(1)) self.assertEqual(2340, sum_of_divisors(1000))
def testSumAllDiv(self): self.assertEqual(15,sum_of_divisors(8)) self.assertEqual(8,sum_of_divisors(7)) self.assertEqual(1,sum_of_divisors(1)) self.assertEqual(2340,sum_of_divisors(1000))
def test_one(self): self.assertEqual(15,solution.sum_of_divisors(8))
def test_three(self): self.assertEqual(1,solution.sum_of_divisors(1))
def test_one(self): self.assertEquals(15, sum_of_divisors(8))
def test_sum_of_divisors_of_1(self): self.assertEqual(solution.sum_of_divisors(1),1)
def test_two(self): self.assertEquals(8, sum_of_divisors(7))
def test_sum_of_divisors4(self): self.assertEqual(18, solution.sum_of_divisors(17))
def test_3(self): self.assertEqual(1, sum_of_divisors(1))
def test_sum_of_divisors(self): self.assertEqual(8, sum_of_divisors(7)) self.assertEqual(2340, sum_of_divisors(1000))
def test_4(self): self.assertEqual(2340, sum_of_divisors(1000))
def test_1(self): self.assertEqual(15, sum_of_divisors(8))
def test_2(self): self.assertEqual(8, sum_of_divisors(7))
def test_zero(self): self.assertEqual(0, solution.sum_of_divisors(0))
def test_negative_number(self): self.assertEqual(15, solution.sum_of_divisors(-8))
def test_four(self): self.assertEqual(2340,solution.sum_of_divisors(1000))
def test_big_numbers(self): self.assertEqual(42, solution.sum_of_divisors(20)) self.assertEqual(2340, solution.sum_of_divisors(1000))
def test_two(self): self.assertEqual(8,solution.sum_of_divisors(7))
def test_sum_of_divisors(self): self.assertEqual(15,sum_of_divisors(8)) self.assertEqual(8,sum_of_divisors(7))
def test_sum_of_divisors_of_prime_7(self): self.assertEqual(solution.sum_of_divisors(7),8)
def test_three(self): self.assertEqual(1, solution.sum_of_divisors(1))
def test_sum_of_divisors_of_0(self): self.assertEqual(solution.sum_of_divisors(0),0)
def test_four(self): self.assertEqual(2340, solution.sum_of_divisors(1000))
def test_sum_of_divisors(self): self.assertEqual(15, sum_of_divisors(8)) self.assertEqual(8, sum_of_divisors(7)) self.assertEqual(1, sum_of_divisors(1)) self.assertEqual(2340, sum_of_divisors(1000))
def test_one(self): self.assertEqual(15, solution.sum_of_divisors(8))
def test_two(self): self.assertEqual(8, solution.sum_of_divisors(7))