Mercurial > hg > configuration
diff tests/unit.py @ 131:dff886188b55
minor fixes
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 30 Mar 2014 19:27:41 -0700 |
parents | 9d19ed8fd883 |
children |
line wrap: on
line diff
--- a/tests/unit.py Sun Mar 30 19:12:00 2014 -0700 +++ b/tests/unit.py Sun Mar 30 19:27:41 2014 -0700 @@ -1,21 +1,17 @@ #!/usr/bin/env python """ -unit tests +unit tests for configuration package """ import configuration import datetime +import json import os import sys import tempfile import unittest -try: - import json -except ImportError: - import simplejson as json - from example import ExampleConfiguration # example configuration to test # globals @@ -227,5 +223,6 @@ instance({'foo': 'foo'}, {'foo': 'FOO', 'bar': 'bar'}) self.assertEqual(instance.added, set(['foo', 'bar'])) + if __name__ == '__main__': unittest.main()