def test_equal_bodies(self): actual = Response( headers={}, status_code=200, data={'key' : 'value'}) assertions.assert_response_matches({'body' : {'key' : 'value'}, 'status_code' : 200, 'headers' : {}}, actual)
def test_omit_status_and_headers(self): actual = Response(headers={}, status_code=200, data={}) assertions.assert_response_matches({'body' : {}}, actual)
def test_empty_body(self): actual = Response(headers={}, status_code=200, data={}) assertions.assert_response_matches({'body' : {}, 'status_code' : 200, 'headers' : {}}, actual)