diff tests/unit.py @ 32:da4d5c5831c6

serialization testing stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 26 Mar 2012 20:23:48 -0700
parents b27a7cb2dd5b
children b7d6a90b0bb5
line wrap: on
line diff
--- a/tests/unit.py	Mon Mar 26 17:06:18 2012 -0700
+++ b/tests/unit.py	Mon Mar 26 20:23:48 2012 -0700
@@ -7,8 +7,14 @@
 import configuration
 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