@override_settings(IOS_NOTIFICATIONS_AUTHENTICATION='AuthBasic')
    def test_basic_authorization_request(self):
        kwargs = {'token': self.device.token, 'service__id': self.device.service.id}
        url = reverse('ios-notifications-device', kwargs=kwargs)
        user_pass = '%s:%s' % (self.user.username, self.user_password)
        auth_header = user_pass.encode('base64') % 'Basic %s'
        resp = self.client.get(url, {}, HTTP_AUTHORIZATION=auth_header)
        self.assertEquals(resp.status_code, 200)
dataset/ETHPy150Open stephenmuss/django-ios-notifications/ios_notifications/tests.py/AuthenticationDecoratorTestAuthBasic.test_basic_authorization_request/swapped operands of `%`