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