aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_validation.py
diff options
context:
space:
mode:
authorTom Christie2014-11-28 13:04:42 +0000
committerTom Christie2014-11-28 13:04:42 +0000
commitc8764de7881f419c9269913ec3654fc1d904ab2e (patch)
tree6c5ac62a82a669b6e8d0a1aa4e669899aa822ffb /tests/test_validation.py
parentd84582fe1f5ca0fb0694e5bde40a8e34f22947f7 (diff)
downloaddjango-rest-framework-c8764de7881f419c9269913ec3654fc1d904ab2e.tar.bz2
Drop defunct tests
Diffstat (limited to 'tests/test_validation.py')
-rw-r--r--tests/test_validation.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_validation.py b/tests/test_validation.py
index 3db82555..4234efd3 100644
--- a/tests/test_validation.py
+++ b/tests/test_validation.py
@@ -165,17 +165,6 @@ class TestChoiceFieldChoicesValidate(TestCase):
except serializers.ValidationError:
self.fail("Value %s does not validate" % str(value))
- # def test_nested_choices(self):
- # """
- # Make sure a nested value for choices works as expected.
- # """
- # f = serializers.ChoiceField(choices=self.CHOICES_NESTED)
- # value = self.CHOICES_NESTED[0][1][0][0]
- # try:
- # f.to_native(value)
- # except ValidationError:
- # self.fail("Value %s does not validate" % str(value))
-
class RegexSerializer(serializers.Serializer):
pin = serializers.CharField(