Commits

Lynn Rees committed d588940

[svn]

  • Participants
  • Parent commits b9ebbc8
  • Branches wsgiserializer

Comments (0)

Files changed (2)

File branches/0.3/trunk/wsgiserialize/__init__.py

-__all__ = ['json', 'cpickler', 'pickler', 'yaml', 'xmlrpc', 'marshaller']
+__all__ = ['json', 'cpickler', 'pickler', 'yamlize', 'xmlrpc', 'marshaller']

File branches/0.3/trunk/wsgiserialize/tests/test_wsgiserialize.py

         @marshaller.marshaller
         def dummy_app(environ, start_response):
             return dict(tuple=(), list=[], str='', dict={}, int=1)
-        self.assertEqual(dummy_app({}, ()), '')
+        self.assertEqual(dummy_app({}, ()), ['{t\x03\x00\x00\x00inti\x01\x00\x00\x00t\x04\x00\x00\x00dict{0t\x04\x00\x00\x00list[\x00\x00\x00\x00t\x03\x00\x00\x00strt\x00\x00\x00\x00t\x05\x00\x00\x00tuple(\x00\x00\x00\x000'])
 
     def test_cpickler(self):
         @cpickler.cpickler
         self.assertEqual(dummy_app({}, ()), ["(dp0\nS'int'\np1\nI1\nsS'dict'\np2\n(dp3\nsS'list'\np4\n(lp5\nsS'str'\np6\nS''\np7\nsS'tuple'\np8\n(ts."])
 
     def test_yamlize(self):
-        @yaml.yamlize
+        @yamlize.yamlize
         def dummy_app(environ, start_response):
             return dict(tuple=(), list=[], str='', dict={}, int=1)
-        self.assertEqual(dummy_app({}, ()), '')
+        self.assertEqual(dummy_app({}, ()), ["dict: {}\nint: 1\nlist: []\nstr: ''\ntuple: !!python/tuple []\n"])
 
     def test_xmlrpc(self):
         @xmlrpc.xmlrpc