@@ -0,0 +1,408 @@
+from django.core.exceptions import ValidationError%0Afrom django.test import TestCase%0A%0Afrom recipes.validators import *%0A%0A%0Aclass ValidatorTests(TestCase):%0A    def test_one_or_negative_one(self):%0A        for i in range (-10, 11):%0A            if i in (-1, 1):%0A                self.assertEquals(i, one_or_negative_one(i))%0A            else:%0A                self.assertRaises(ValidationError, one_or_negative_one, i)

tests for one_or_negative_one