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

15 lines
302 B
Python
Executable File

import unittest
class Test_Threshold(unittest.TestCase) :
def test(self) :
import threshold
tl = threshold.Threshold(5)
self.assertFalse(tl.can_breach())
self.assertFalse(tl.exceeds(7))
self.assertFalse(tl.exceeds(3))
if __name__ == "__main__" :
unittest.main()