)
self.assertEqual(retval.headers['Content-Type'], 'text/plain')
- self.assertEqual(retval.body, 'content')
+ self.assertEqual(b'content', retval.body)
def test_proxy_request_network_200(self):
self.handler.network_id = 'network_id'
self.assertEqual(retval.headers['Content-Type'],
'application/json')
- self.assertEqual(retval.body, '{}')
+ self.assertEqual(b'{}', retval.body)
def _test_proxy_request_network_4xx(self, status, method, expected):
self.handler.network_id = 'network_id'
neutron.tests.unit.api.rpc.agentnotifiers.test_dhcp_rpc_agent_api \
neutron.tests.unit.api.v2.test_attributes \
neutron.tests.unit.agent.metadata.test_driver \
+ neutron.tests.unit.agent.metadata.test_namespace_proxy \
neutron.tests.unit.agent.test_rpc \
neutron.tests.unit.agent.test_securitygroups_rpc \
neutron.tests.unit.agent.l3.test_link_local_allocator \