'Test that an anonymous user cannot access the API and an error is received.'

def test_anonymous_import_fails(self):

    with open(self.good_tar_fullpath, 'rb') as fp:
        resp = self.client.post(self.get_url(self.course_key), {'course_data': fp}, format='multipart')
    self.assertEqual(resp.status_code, status.HTTP_401_UNAUTHORIZED)
