def test_metadata(self):
     resp = BindingResponse(data=b'data', binding_metadata={'status': 'ok'})
     self.assertEqual({'status': 'ok'}, resp.binding_metadata)
     self.assertEqual(b'data', resp.data)
     self.assertEqual('data', resp.text())
 def test_bytes_message(self):
     resp = BindingResponse(data=b'data', binding_metadata={})
     self.assertEqual({}, resp.binding_metadata)
     self.assertEqual(b'data', resp.data)
     self.assertEqual('data', resp.text())