Пример #1
0
 def test_gt_than_100(self):
     result = check_weirdness(101)
     self.assertEqual(result, "Not Applicable")
Пример #2
0
 def test_odd_1(self):
     result = check_weirdness(1)
     self.assertEqual(result, "Weird")
Пример #3
0
 def test_even_gt_than_20(self):
     result = check_weirdness(22)
     self.assertEqual(result, "Not Weird")
Пример #4
0
 def test_less_than_1(self):
     result = check_weirdness(-1)
     self.assertEqual(result, "Not Applicable")
Пример #5
0
 def test_even_6_to_20(self):
     result = check_weirdness(10)
     self.assertEqual(result, "Weird")
Пример #6
0
 def test_even_2_to_5(self):
     result = check_weirdness(4)
     self.assertEqual(result, "Not Weird")
Пример #7
0
 def test_odd_gt_than_20(self):
     result = check_weirdness(23)
     self.assertEqual(result, "Weird")
Пример #8
0
 def test_odd_6_to_20(self):
     result = check_weirdness(19)
     self.assertEqual(result, "Weird")
Пример #9
0
 def test_odd_2_to_5(self):
     result = check_weirdness(3)
     self.assertEqual(result, "Weird")