Adding unittests for get_env_variable
This commit is contained in:
parent
425ebf1771
commit
1d879fb78c
1 changed files with 7 additions and 1 deletions
|
@ -38,4 +38,10 @@ class UtilitiesTestCase(unittest.TestCase):
|
|||
self.assertEqual(0, r)
|
||||
|
||||
r = ut.to_zero_count(10.52)
|
||||
self.assertEqual(9, r)
|
||||
self.assertEqual(9, r)
|
||||
|
||||
def test_get_environment_variable(self):
|
||||
import os
|
||||
self.assertEqual(ut.get_env_variable("TESTING", "false"), 'false')
|
||||
os.environ['TESTING'] = 'True'
|
||||
self.assertEqual(ut.get_env_variable("TESTING", "false"), 'True')
|
Loading…
Reference in a new issue