Пример #1
0
 def test_2(self):
     self.assertEqual(Base23.get_proper_divisors(2), set([1]))
Пример #2
0
 def test_4(self):
     self.assertFalse(Base23.is_sum_of_two_abundant(4))
Пример #3
0
 def test_28124(self):
     self.assertTrue(Base23.is_sum_of_two_abundant(28124))
Пример #4
0
 def test_121(self):
     self.assertFalse(Base23.is_abundand(121))
Пример #5
0
 def test_1(self):
     self.assertEqual(Base23.get_proper_divisors(1), set([]))
Пример #6
0
 def test_119(self):
     self.assertFalse(Base23.is_abundand(119))
Пример #7
0
 def test_120(self):
     self.assertTrue(Base23.is_abundand(120))
Пример #8
0
 def test_28(self):
     self.assertFalse(Base23.is_abundand(28))
Пример #9
0
 def test_18(self):
     self.assertTrue(Base23.is_abundand(18))
Пример #10
0
 def test_4(self):
     self.assertFalse(Base23.is_abundand(4))
Пример #11
0
 def test_28(self):
     self.assertEqual(Base23.get_proper_divisors(28), set([1, 2, 4, 7, 14]))
Пример #12
0
 def test_4(self):
     self.assertEqual(Base23.get_proper_divisors(4), set([1, 2]))