def setup_dummy_oms(self):
        from openflow.dummyom.models import DummyOM
        from django.contrib.auth.models import User
        from django.core.urlresolvers import reverse
        
        for i in range(settings.NUM_DUMMY_OMS):
            # Create the OM user
            username = i % "clearinghouse%s"
            password = "clearinghouse"
            User.objects.create_user(
                username=username, email="email@email.com", password=password)

            # Create the Dummy OM to which we will connect
            om = DummyOM.objects.create()
            om.populate_links(settings.NUM_SWITCHES_PER_AGG, 
                              settings.NUM_LINKS_PER_AGG/2)
            
            logger.debug("Creating OpenFlow Aggregate %s" % (i+1))
            
            # Add the dummy OM aggregate to Expedient
            response = self.browser.get_and_post_form(
                url=get_base_url(reverse("openflow_aggregate_create")),
                params=dict(
                    name="DummyOM %s" % i,
                    description="DummyOM Description",
                    location="Stanford, CA",
                    usage_agreement="Do you agree?",
                    username=username,
                    password=password,
                    url=get_base_url(reverse("dummyom_rpc", args=[om.id])),
                ),
                del_params=["verify_certs"],
            )
            self.assertEqual(
                response.geturl(),
                get_base_url(
                    reverse("openflow_aggregate_add_links", args=[i+1])),
                "Did not redirect after create correctly. Response was: %s"
                % response.read(),
            )
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/plugins/openflow/tests/gapi/gapi.py/GAPITests.setup_dummy_oms/swapped operands of `%`