~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/tests/api/openstack/test_wsgi.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandelman
  • Date: 2013-02-22 09:27:29 UTC
  • mfrom: (1.1.68)
  • Revision ID: package-import@ubuntu.com-20130222092729-nn3gt8rf97uvts77
Tags: 2013.1.g3-0ubuntu1
[ Chuck Short ]
* New usptream release. 
* debian/patches/debian/patches/fix-ubuntu-tests.patch: Refreshed.
* debian/nova-baremetal.logrotate: Fix logfile path.
* debian/control, debian/nova-spiceproxy.{install, logrotate, upstart}:
  Add spice html5 proxy support.
* debian/nova-novncproxy.upstart: Start on runlevel [2345]
* debian/rules: Call testr directly since run_tests.sh -N gives weird return
  value when tests pass.
* debian/pyddist-overrides: Add websockify.
* debian/nova-common.postinst: Removed config file conversion, since
  the option is no longer available. (LP: #1110567)
* debian/control: Add python-pyasn1 as a dependency.
* debian/control: Add python-oslo-config as a dependency.
* debian/control: Suggest sysfsutils, sg3-utils, multipath-tools for fibre
  channel support.

[ Adam Gandelman ]
* debian/control: Fix typo (websocikfy -> websockify).

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
        self.assertEqual(deserializer.deserialize(xml), as_dict)
197
197
 
198
198
    def test_xml_empty(self):
199
 
        xml = """<a></a>"""
 
199
        xml = '<a></a>'
200
200
        as_dict = {"body": {"a": {}}}
201
201
        deserializer = wsgi.XMLDeserializer()
202
202
        self.assertEqual(deserializer.deserialize(xml), as_dict)
753
753
        self.assertEqual(response, 'foo')
754
754
 
755
755
    def test_resource_exception_handler_type_error(self):
756
 
        """A TypeError should be translated to a Fault/HTTP 400"""
 
756
        # A TypeError should be translated to a Fault/HTTP 400.
757
757
        def foo(a,):
758
758
            return a
759
759