(self)
| 49 | self.model = ProtocolBufferModel(MockProtocolBuffer) |
| 50 | |
| 51 | def test_no_body(self): |
| 52 | headers = {} |
| 53 | path_params = {} |
| 54 | query_params = {} |
| 55 | body = None |
| 56 | |
| 57 | headers, params, query, body = self.model.request( |
| 58 | headers, path_params, query_params, body |
| 59 | ) |
| 60 | |
| 61 | self.assertEqual(headers["accept"], "application/x-protobuf") |
| 62 | self.assertTrue("content-type" not in headers) |
| 63 | self.assertNotEqual(query, "") |
| 64 | self.assertEqual(body, None) |
| 65 | |
| 66 | def test_body(self): |
| 67 | headers = {} |