コード例 #1
0
 def test_is_cousin_6(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 950, 797)
     self.assertIsNone(result)
コード例 #2
0
 def test_is_cousin_7(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 949, 950)
     self.assertTrue(result in {742, 840, 169, 755, 697})
コード例 #3
0
 def test_is_cousin_5(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 891, 656)
     self.assertTrue(result in {840, 873})
コード例 #4
0
 def test_is_cousin_4(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 656, 380)
     self.assertEqual(result, 873)
コード例 #5
0
 def test_is_cousin_3(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 84, 48)
     self.assertIsNone(result)
コード例 #6
0
 def test_is_cousin_2(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 135, 778)
     self.assertTrue(result in {697, 169})
コード例 #7
0
 def test_is_cousin_1(self):
     result = quiz.is_cousin(TestProblem2.parent_db, 92, 969)
     self.assertIsNone(result)