'Check that the response for a tar.gz import without a course.xml is
correct.'

def test_no_coursexml(self):

    with open(self.bad_tar) as btar:
        resp = self.client.post(self.url, {'name': self.bad_tar, 'course-data': [btar]})
    self.assertEquals(resp.status_code, 200)
    resp_status = self.client.get(reverse_course_url('import_status_handler', self.course.id, kwargs={'filename': os.path.split(self.bad_tar)[1]}))
    self.assertEquals(json.loads(resp_status.content)['ImportStatus'], (-2))
