w3c/ldp-testsuite — pull request #74 by fserena (2014-06-26 10:45:14+00:00)
Title: Ensure resource deletion in testPostResponseStatusAndLocation

There is a problem with the tests which begin with a POST of a resource and end with its deletion. When the expectation of the request is not fulfilled or any of the assertions fails, the sentence that deletes such resource never runs.

I've detected this issue because I am using a server which doesn't allow creating a resource that already exists, but anyway I think it is an implementation flaw.

This request proposes a change in `testPostResponseStatusAndLocation` that ensures deletion whatever happened before. The same pattern could be applied for each test that behaves the same way.