def testExperimentTag(self):
        found_test = False
        found_control = False
        
        for i in range(100):
            username = "user%s" % i
            in_test = self.doRenderExperiment(username, "test")
            found_test = found_test or in_test
            found_control = found_control or (not in_test)
            
            # make sure we get the same result from a second call
            self.assertEquals(in_test,
                              self.doRenderExperiment(username, "test"))
            
            # make sure that the result of calling control is the opposite of
            # the result of calling test
            in_control = self.doRenderExperiment(username, "control")
            self.assertEquals(not in_test, in_control)
        
        self.assertTrue(found_control and found_test)
dataset/ETHPy150Open Miserlou/django-easy-split/easy_split/tests/test_tags.py/ExperimentTagsTest.testExperimentTag/original