Skip to content

Commit

Permalink
integration test for passing request params as kwargs.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascamata committed Mar 27, 2011
1 parent 9ccaac5 commit a8bd42f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ def should_perform_ordinary_requests(self):
assert "Response for" in body
assert "/hello" in body

def should_perform_requests_with_parameters_as_kwargs(self):
response = Restfulie.at("http://localhost:20144").post(action="test")
print response.body
body = response.body
assert "This is a test" in body

def should_perform_ordinary_requests_with_simple_auth(self):
r = Restfulie.at("http://localhost:20144/auth").auth('test', 'test')
response = r.get()
Expand Down

0 comments on commit a8bd42f

Please sign in to comment.