Modified utils_tests for unittest2 discovery.

This commit is contained in:
Preston Timmons 2013-04-06 13:59:39 -05:00 committed by Carl Meyer
parent 3810dc3070
commit 612ef3e5c9
28 changed files with 27 additions and 27 deletions

View file

@ -0,0 +1,11 @@
from django.test import TestCase
from .models import Category, Thing
class TestIsIterator(TestCase):
def test_regression(self):
"""This failed on Django 1.5/Py2.6 because category has a next method."""
category = Category.objects.create(name='category')
Thing.objects.create(category=category)
Thing.objects.filter(category=category)