def test_mixed_choices(self):
        f = serializers.ChoiceField(choices=self.MIXED_CHOICES)
        value = self.MIXED_CHOICES[1]
        try:
            f.to_internal_value(value)
        except serializers.ValidationError:
            self.fail("Value %s does not validate" % str(value))
Creates a URL for the page where the request token can be authorized.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validation.py/TestChoiceFieldChoicesValidate.test_mixed_choices--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py/generate_oauth_authorization_url