QVolution2019.2/AoM_Service/library/serviceapp/test_threshold_upper.py

15 lines
322 B
Python
Executable File

import unittest
class Test_Threshold_Upper(unittest.TestCase) :
def test(self) :
import threshold_upper
tl = threshold_upper.Threshold_Upper(5)
self.assertTrue(tl.can_breach)
self.assertTrue(tl.exceeds(7))
self.assertFalse(tl.exceeds(3))
if __name__ == "__main__" :
unittest.main()