def test_user_re_optin(self):
        self.test_user_optin()
            
        all_exps = Experiment.objects.all()
        self.assertEqual(all_exps.count(),1)
            
        uopt = UserOpts.objects.filter(user__username__exact="user")
        optfs = OptsFlowSpace.objects.filter(opt=uopt[0])
        self.assertEqual(len(optfs),1)
        response = test_get_and_post_form(
            self.client,
            reverse("opt_in_experiment"),
            {"experiment":all_exps[0].id},
        )  
        self.assertContains(response, "successfully")
        uopt = UserOpts.objects.filter(user__username__exact="user")
        self.assertEqual(len(uopt),1)
        optfs = OptsFlowSpace.objects.filter(opt=uopt[0])
        self.assertEqual(len(optfs),1)
        actual_fv_rules_count = DummyFVRule.objects.all().count()
        self.assertEqual(self.num_fv_rules,actual_fv_rules_count)
Returns the region code that matches a specific country calling code.
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/optin_manager/opts/tests.py/Tests.test_user_re_optin--crossover with--dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/region_code_for_country_code