def testIntegrationWithRegisteredUser(self):
        def create_registered_user_client(i):
            user = User(username=i % "user%s", email="user%s@example.com" % i)
            user.set_password("password")
            user.save()
            
            client = Client()
            
            if not client.login(username=user.username, password="password"):
                raise Exception("login failure")
            return client
        self.doTestIntegration(
            url=reverse('easy_split.experiments.tests.views.experiment_test',
                        args=[self.experiment.name]),
            client_factory=create_registered_user_client)
        
        # we wrap our factory to ensure that the users are created
        # with new names
        self.doTestIntegration(
            url=reverse('easy_split.experiments.tests.views.clientsideexperiment_test',
                        args=[self.other_experiment.name]),
            client_factory=lambda i: create_registered_user_client(1000 + i))
dataset/ETHPy150Open Miserlou/django-easy-split/easy_split/tests/test_tags.py/ExperimentTagsTest.testIntegrationWithRegisteredUser/swapped operands of `%`