First pass at getting test framework up and running.

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

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

View File

@ -0,0 +1,3 @@
{
"RELAY_DECOMPRESS_MESSAGES" : true
}