mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Modified utils_tests for unittest2 discovery.
This commit is contained in:
parent
3810dc3070
commit
612ef3e5c9
28 changed files with 27 additions and 27 deletions
11
tests/utils_tests/test_itercompat.py
Normal file
11
tests/utils_tests/test_itercompat.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue