Add a unittest to reproduce issue #11
This commit is contained in:
parent
8cfea4a0a1
commit
8b235ef79a
@ -89,3 +89,7 @@ class AuthorsController(RestController):
|
||||
def post(self, author):
|
||||
author.id = 10
|
||||
return author
|
||||
|
||||
@wsmeext.pecan.wsexpose(None, int)
|
||||
def delete(self, author_id):
|
||||
print "Deleting", author_id
|
||||
|
@ -123,3 +123,7 @@ class TestWS(FunctionalTest):
|
||||
print book
|
||||
assert book['id'] == 2
|
||||
assert book['author']['id'] == 1
|
||||
|
||||
def test_no_content_type_if_no_return_type(self):
|
||||
res = self.app.delete('/authors/4')
|
||||
assert "Content-Type" not in res.headers
|
||||
|
Loading…
x
Reference in New Issue
Block a user