コード例 #1
0
 def test_five_is_multiple(self):
     _, result_for_five, _ = _is_three_and_five_multiple(5)
     self.assertTrue(result_for_five)
コード例 #2
0
 def test_45_is_multiple_for_both(self):
     result = _is_three_and_five_multiple(15)
     self.assertTrue(all(result))
コード例 #3
0
 def test_99_is_multiple(self):
     result_for_three, *_ = _is_three_and_five_multiple(99)
     self.assertTrue(result_for_three)
コード例 #4
0
 def test_float_three_is_not_multiple(self):
     result_for_three, *_ = _is_three_and_five_multiple(float(3))
     self.assertFalse(result_for_three)
コード例 #5
0
 def test_float_31_is_not_multiple(self):
     result = _is_three_and_five_multiple(float(31))
     self.assertFalse(any(result))
コード例 #6
0
 def test_88_is_not_multiple(self):
     result = _is_three_and_five_multiple(88)
     self.assertFalse(any(result))
コード例 #7
0
 def test_ASD_is_not_multiple(self):
     result = _is_three_and_five_multiple("ASD")
     self.assertFalse(any(result))