new env setup

This commit is contained in:
stubbfel
2014-05-11 01:48:45 +02:00
parent 809f1a8111
commit 48353cab1c
24 changed files with 704 additions and 668 deletions

View File

@@ -0,0 +1 @@
__author__ = 'stubbfel'

View File

@@ -0,0 +1 @@
__author__ = 'stubbfel'

View 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()