~0x44/nova/extdoc

« back to all changes in this revision

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

  • Committer: Lvov Maxim
  • Date: 2011-07-26 05:50:05 UTC
  • mfrom: (1320 nova)
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: usrleon@gmail.com-20110726055005-7olsp0giqup3pao7
merge with trunk, resolve conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        self.assertEqual(response.body, 'pew_json')
257
257
        self.assertEqual(response.status_int, 404)
258
258
 
 
259
    def test_serialize_response_None(self):
 
260
        response = self.serializer.serialize(None, 'application/json')
 
261
        print response
 
262
        self.assertEqual(response.headers['Content-Type'], 'application/json')
 
263
        self.assertEqual(response.body, '')
 
264
        self.assertEqual(response.status_int, 404)
 
265
 
259
266
    def test_serialize_response_dict_to_unknown_content_type(self):
260
267
        self.assertRaises(exception.InvalidContentType,
261
268
                          self.serializer.serialize,