new env setup
This commit is contained in:
1
testenv/tests/__init__.py
Normal file
1
testenv/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
__author__ = 'stubbfel'
|
||||
1
testenv/tests/utilities/__init__.py
Normal file
1
testenv/tests/utilities/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
__author__ = 'stubbfel'
|
||||
16
testenv/tests/utilities/testjsonutilities.py
Normal file
16
testenv/tests/utilities/testjsonutilities.py
Normal file
@@ -0,0 +1,16 @@
|
||||
__author__ = 'stubbfel'
|
||||
|
||||
import unittest
|
||||
import utilities.jsonutility as ju
|
||||
|
||||
|
||||
class JsonUtilitiesTest(unittest.TestCase):
|
||||
def test_write_json_returns_error_if_json_object_is_emptystring(self):
|
||||
self.assertRaises(ValueError, ju.write_json, "test.json", "")
|
||||
|
||||
def test_write_json_returns_error_if_json_object_is_wrong_json_string(self):
|
||||
self.assertRaises(ValueError, ju.write_json, "test.json", "{1}")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user