Пример #1
0
 def testTrueValue(self):
     res = base.triangle(1, 2, 2.5)
     self.assertEqual(res, True)
Пример #2
0
 def testMinusValue(self):
     res = base.triangle(-1, -2, -2.5)
     self.assertEqual(res, False)
Пример #3
0
 def testStrIn(self):
     res = base.triangle("abc", 7, 4)
     self.assertIsNone(res)
Пример #4
0
 def testListIn(self):
     res = base.triangle([1, 2], 11, 3)
     self.assertIsNone(res)
Пример #5
0
 def testZeroValue(self):
     res = base.triangle(0, 0, 0)
     self.assertEqual(res, False)