@override_settings(IOS_NOTIFICATIONS_AUTHENTICATION='AuthBasic')
    def test_basic_authorization_missing_header(self):
        url = reverse('ios-notifications-device-create')
        resp = self.client.get(url)
        self.assertEquals(resp.status_code, 401)
        self.assertTrue('Authorization header not set' in resp.content)
dataset/ETHPy150Open stephenmuss/django-ios-notifications/ios_notifications/tests.py/AuthenticationDecoratorTestAuthBasic.test_basic_authorization_missing_header/original