def _upload_file(self, doc_name, suggested_format='pdf', hash_code=None, check_response=True, code=None):
        self.client.login(username=self.username, password=self.password)
        url, data = self._get_tests_file(doc_name, code, suggested_format, hash_code)
        response = self.client.post(url, data)
        if check_response:
            self.assertEqual(response.status_code, 201)
        return response
Upload initial version of a file into DMS
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/dms/base_test.py/DMSTestCase._upload_file