summaryrefslogtreecommitdiff
path: root/tests/max_lengths
diff options
context:
space:
mode:
authorJason Myers <jason@jasonamyers.com>2013-11-02 23:36:09 -0500
committerJason Myers <jason@jasonamyers.com>2013-11-02 23:50:49 -0500
commit7a61c68c50d3837c50e35c252fd76220f08b5290 (patch)
tree586f16a3f02c2b45ffb3dd2af834c0ef604e099c /tests/max_lengths
parent0fdb692c6c94d912f17a3e2ad12413fb072d38ec (diff)
downloaddjango-7a61c68c50d3837c50e35c252fd76220f08b5290.tar.gz
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
Diffstat (limited to 'tests/max_lengths')
-rw-r--r--tests/max_lengths/models.py1
-rw-r--r--tests/max_lengths/tests.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/max_lengths/models.py b/tests/max_lengths/models.py
index d66e833e8c..ec4cc8e114 100644
--- a/tests/max_lengths/models.py
+++ b/tests/max_lengths/models.py
@@ -7,6 +7,7 @@ class PersonWithDefaultMaxLengths(models.Model):
homepage = models.URLField()
avatar = models.FilePathField()
+
class PersonWithCustomMaxLengths(models.Model):
email = models.EmailField(max_length=250)
vcard = models.FileField(upload_to='/tmp', max_length=250)
diff --git a/tests/max_lengths/tests.py b/tests/max_lengths/tests.py
index 5dd33fc80f..25101cd535 100644
--- a/tests/max_lengths/tests.py
+++ b/tests/max_lengths/tests.py
@@ -22,6 +22,7 @@ class MaxLengthArgumentsTests(unittest.TestCase):
self.verify_max_length(PersonWithCustomMaxLengths, 'homepage', 250)
self.verify_max_length(PersonWithCustomMaxLengths, 'avatar', 250)
+
class MaxLengthORMTests(unittest.TestCase):
def test_custom_max_lengths(self):