def test_update_unauthorized(self):
        UserProxy.objects.create_user('nobody@nobody.com', 'nobody@nobody.com', 'password')

        notification = Notification.objects.all()[0]

        data = json.dumps({ 'read_at': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S') })

        response = self.client.put(notification.id % '/api/1.0/notification/%i/', data=data, content_type='application/json', **utils.get_auth_headers('nobody@nobody.com')) 
        # This returns 201 (rather than 401), because the PUT fails to match an
        # existing notification that the user has access to and thus falls
        # back to creating a new one.
        # This is probably not ideal, but works.
        self.assertEqual(response.status_code, 201)
dataset/ETHPy150Open pandaproject/panda/panda/tests/test_api_notification.py/TestAPINotifications.test_update_unauthorized/swapped operands of `%`