示例#1
0
 def test2(self):
     self.assertEqual(proper_divisors(2), [1])
示例#2
0
 def test_known_large(self):
     self.assertEqual(proper_divisors(220),
                      [1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110])
     self.assertEqual(proper_divisors(284), [1, 2, 4, 71, 142])
示例#3
0
 def test1(self):
     self.assertEqual(proper_divisors(1), [1])
示例#4
0
 def test7_to_10(self):
     self.assertEqual(proper_divisors(7), [1])
     self.assertEqual(proper_divisors(8), [1, 2, 4])
     self.assertEqual(proper_divisors(9), [1, 3])
     self.assertEqual(proper_divisors(10), [1, 2, 5])
示例#5
0
 def test6(self):
     self.assertEqual(proper_divisors(6), [1, 2, 3])
示例#6
0
 def test5(self):
     self.assertEqual(proper_divisors(5), [1])
示例#7
0
 def test4(self):
     self.assertEqual(proper_divisors(4), [1, 2])
示例#8
0
 def test3(self):
     self.assertEqual(proper_divisors(3), [1])