def test_delete_parameters(context): "requesting with DELETE parameters" sl = SleepyHollow() response = sl.delete( context.route_to('/status-200.json'), params={'name': 'Gabriel'}, ) # Let's test the types response.should.be.a(Response) response.status_code.should.be.an(int) response.text.should.be.a(unicode) response.content.should.be.a(str) response.headers.should.have.key('X-success').being.equal('true') response.headers.should.have.key('X-method').being.equal('"DELETE"') response.headers.should.have.key('X-status').being.equal('200') response.headers.should.have.key('X-name').being.equal('"Gabriel"')