def cleanUp(self, documents, check_response=True):
        self.client.login(username=self.username, password=self.password)
        for doc in documents:
            code, suggested_format = os.path.splitext(doc)
            url = reverse('api_file', kwargs={'code': code})
            data = {}
            response = self.client.delete(url, data=data)
            if response.status_code is not 204:
                print "ERROR DATA: %s, %s" % (code, response.status_code)
            if check_response:
                self.assertEqual(response.status_code, 204)
Cleanup Helper
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/dms/base_test.py/DMSTestCase.cleanUp