def testNoDoubleInGetDivisors36(self): divisors = getDivisors(36) self.assertEqual(len(divisors), len(set(divisors)))
def testGetDivisors(self): self.assertEqual([1, 2, 4, 5, 10, 20], getDivisors(20))