From d5143074012ec71b443c4eaa5d074b8d91468de8 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 9 May 2011 17:10:19 +0000 Subject: [PATCH] Inline TestObject for net_obj_test.py as well Signed-off-by: Dan Scott git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2246 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/tests/net_obj_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/python/tests/net_obj_test.py b/src/python/tests/net_obj_test.py index 07e4fc8..000c6b0 100644 --- a/src/python/tests/net_obj_test.py +++ b/src/python/tests/net_obj_test.py @@ -7,6 +7,17 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) 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""" -- 2.43.2