mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			Python
		
	
	
	
	
	
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)
 |