15 lines
322 B
Python
Executable File
15 lines
322 B
Python
Executable File
import unittest
|
|
|
|
class Test_Threshold_Lower(unittest.TestCase) :
|
|
def test(self) :
|
|
import threshold_lower
|
|
tl = threshold_lower.Threshold_Lower(5)
|
|
|
|
self.assertTrue(tl.can_breach)
|
|
|
|
self.assertTrue(tl.exceeds(3))
|
|
self.assertFalse(tl.exceeds(7))
|
|
|
|
if __name__ == "__main__" :
|
|
unittest.main()
|