Signed-off-by: Dan Scott <dan@coffeecode.net>
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2246
9efc2488-bf62-4759-914b-
345cdb29e865
import osrf.json, osrf.net_obj, unittest
+class TestObject(object):
+ """Test object with basic JSON structures"""
+ def __init__(self):
+ self.int = 1
+ self.string = "two"
+ self.array = [1,2,3,4]
+ self.dict = {'foo': 'bar', 'key': 'value'}
+ self.true = True
+ self.false = False
+ self.null = None
+
class CheckNetworkEncoder(unittest.TestCase):
"""Tests the NetworkEncoder JSON encoding extension"""