First pass at getting test framework up and running.

This commit is contained in:
James Muscat committed 2015-04-14 13:36:23 +01:00
1 parent ec3987ad17
commit 1f3de2474c
3 files changed
+14

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import os
import unittest
class TestSettings(unittest.TestCase):
def testLoadSettings(self):
from eddn.conf.Settings import Settings
self.assertEqual(Settings.RELAY_DECOMPRESS_MESSAGES, False)
Settings.loadFrom(os.path.join(os.path.dirname(__file__), "testLoadSettings.json"))
self.assertEqual(Settings.RELAY_DECOMPRESS_MESSAGES, True)
View File
Whitespace-only changes.
@@ -0,0 +1,3 @@
{
"RELAY_DECOMPRESS_MESSAGES" : true
}