Closed GoogleCodeExporter closed 8 years ago
What steps will reproduce the problem? Run the Django test suite (as of rev. 9788) against an SQL Server 2000 database using django-pyodbc trunk as of r134 The Django test suite is a good way to exercise functionality and correctness of the backend implementation. What is the expected output? What do you see instead? Expected: Most test pass Actual result: There is a total of 46 failing tests that fail because of bug(s) that haven't been already reported in other issues. Given the quantity I'm wary of reporting each one of them in their own issues so I'm opening this issue as a placeholder. Tests failing: modeltests.update modeltests.model_forms modeltests.m2m_multiple modeltests.save_delete_hooks modeltests.many_to_one_null modeltests.signals modeltests.serializers modeltests.m2m_and_m2o modeltests.custom_methods modeltests.custom_columns modeltests.custom_managers modeltests.basic modeltests.many_to_one modeltests.custom_pk modeltests.model_formsets modeltests.pagination modeltests.one_to_one modeltests.ordering modeltests.delete modeltests.or_lookups modeltests.m2o_recursive modeltests.transactions modeltests.generic_relations modeltests.reserved_names modeltests.fixtures modeltests.many_to_many modeltests.model_inheritance modeltests.m2m_through modeltests.m2o_recursive2 modeltests.m2m_recursive modeltests.m2m_intermediary modeltests.field_subclassing regressiontests.m2m_regress regressiontests.extra_regress regressiontests.backends regressiontests.managers_regress regressiontests.many_to_one_regress regressiontests.queries regressiontests.fixtures_regress regressiontests.m2m_through_regress regressiontests.one_to_one_regress regressiontests.null_queries regressiontests.model_inheritance_regress regressiontests.custom_columns_regress regressiontests.model_inheritance_select_related regressiontests.reverse_single_related An excerpt of the test suite output that contains the actual tracebacks follows: ====================================================================== FAIL: Doctest: modeltests.update.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.update.models.__test__.API_TESTS File "~/django/tests/modeltests/update/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/update/models.py", line ?, in modeltests.update.models.__test__.API_TESTS Failed example: DataPoint.objects.filter(value="apple") Expected: [<DataPoint: d1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/update/models.py", line ?, in modeltests.update.models.__test__.API_TESTS Failed example: RelatedPoint.objects.filter(data__name="d1") Expected: [<RelatedPoint: r1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/update/models.py", line ?, in modeltests.update.models.__test__.API_TESTS Failed example: DataPoint.objects.values('value').distinct() Expected: [{'value': u'thing'}] Got: [] ====================================================================== FAIL: Doctest: modeltests.model_forms.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.model_forms.models.__test__.API_TESTS File "~/django/tests/modeltests/model_forms/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: Category.objects.all() Expected: [<Category: Entertainment>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: Category.objects.order_by('name') Expected: [<Category: Entertainment>, <Category: It's a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: Category.objects.order_by('name') Expected: [<Category: Entertainment>, <Category: It's a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: Category.objects.order_by('name') Expected: [<Category: Entertainment>, <Category: It's a test>, <Category: Third test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: new_art.categories.all() Expected: [<Category: Entertainment>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: new_art.categories.order_by('name') Expected: [<Category: Entertainment>, <Category: It's a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: new_art.categories.order_by('name') Expected: [<Category: Entertainment>, <Category: It's a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_forms/models.py", line ?, in modeltests.model_forms.models.__test__.API_TESTS Failed example: new_art.categories.order_by('name') Expected: [<Category: Entertainment>, <Category: It's a test>] Got: [] ====================================================================== FAIL: Doctest: modeltests.m2m_multiple.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2m_multiple.models.__test__.API_TESTS File "~/django/tests/modeltests/m2m_multiple/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: a1.primary_categories.all() Expected: [<Category: Crime>, <Category: News>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: a2.primary_categories.all() Expected: [<Category: News>, <Category: Sports>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: a1.secondary_categories.all() Expected: [<Category: Life>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: c1.primary_article_set.all() Expected: [<Article: Area man runs>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: c2.primary_article_set.all() Expected: [<Article: Area man steals>, <Article: Area man runs>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: c3.primary_article_set.all() Expected: [<Article: Area man steals>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_multiple/models.py", line ?, in modeltests.m2m_multiple.models.__test__.API_TESTS Failed example: c4.secondary_article_set.all() Expected: [<Article: Area man steals>, <Article: Area man runs>] Got: [] ====================================================================== FAIL: Doctest: modeltests.save_delete_hooks.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.save_delete_hooks.models.__test__.API_TESTS File "~/django/tests/modeltests/save_delete_hooks/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/save_delete_hooks/models.py", line ?, in modeltests.save_delete_hooks.models.__test__.API_TESTS Failed example: Person.objects.all() Expected: [<Person: John Smith>] Got: [] ====================================================================== FAIL: Doctest: modeltests.many_to_one_null.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.many_to_one_null.models.__test__.API_TESTS File "~/django/tests/modeltests/many_to_one_null/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: First>, <Article: Second>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r.article_set.filter(headline__startswith='Fir') Expected: [<Article: First>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__isnull=True) Expected: [<Article: Third>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter=None) Expected: [<Article: Third>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: First>, <Article: Second>, <Article: Third>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: First>, <Article: Second>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__isnull=True) Expected: [<Article: Third>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r2.article_set.all() Expected: [<Article: Fourth>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r2.article_set.all() Expected: [<Article: Fourth>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: r2.article_set.all() Expected: [<Article: Second>, <Article: Third>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one_null/models.py", line ?, in modeltests.many_to_one_null.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__isnull=True) Expected: [<Article: First>, <Article: Fourth>] Got: [] ====================================================================== FAIL: Doctest: modeltests.signals.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.signals.models.__test__.API_TESTS File "~/django/tests/modeltests/signals/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/signals/models.py", line ?, in modeltests.signals.models.__test__.API_TESTS Failed example: Person.objects.all() Expected: [<Person: James Jones>] Got: [] ====================================================================== FAIL: Doctest: modeltests.serializers.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.serializers.models.__test__.API_TESTS File "~/django/tests/modeltests/serializers/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/serializers/models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Poker has no place on ESPN>, <Article: Time to reform copyright>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/serializers/models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Poker has no place on television>, <Article: Time to reform copyright>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/serializers/models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS Failed example: Author.objects.all() Expected: [<Author: Bill>, <Author: Jane>, <Author: Joe>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/serializers/models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Just kidding; I love TV poker>, <Article: Time to reform copyright>] Got: [] ====================================================================== FAIL: Doctest: modeltests.m2m_and_m2o.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2m_and_m2o.models.__test__.API_TESTS File "~/django/tests/modeltests/m2m_and_m2o/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_and_m2o/models.py", line ?, in modeltests.m2m_and_m2o.models.__test__.API_TESTS Failed example: Issue.objects.filter(client=r.id) Expected: [<Issue: 1>, <Issue: 2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_and_m2o/models.py", line ?, in modeltests.m2m_and_m2o.models.__test__.API_TESTS Failed example: Issue.objects.filter(client=g.id) Expected: [<Issue: 3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_and_m2o/models.py", line ?, in modeltests.m2m_and_m2o.models.__test__.API_TESTS Failed example: Issue.objects.filter(cc__id__exact=r.id) Expected: [<Issue: 2>, <Issue: 3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_and_m2o/models.py", line ?, in modeltests.m2m_and_m2o.models.__test__.API_TESTS Failed example: Issue.objects.filter(Q(cc__id__exact=r.id) | Q(client=r.id)) Expected: [<Issue: 1>, <Issue: 2>, <Issue: 3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_and_m2o/models.py", line ?, in modeltests.m2m_and_m2o.models.__test__.API_TESTS Failed example: Issue.objects.filter(cc__id__exact=r.id) | Issue.objects.filter(client=r.id) Expected: [<Issue: 1>, <Issue: 2>, <Issue: 3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_and_m2o/models.py", line ?, in modeltests.m2m_and_m2o.models.__test__.API_TESTS Failed example: Issue.objects.filter(Q(client=r.id) | Q(cc__id__exact=r.id)) Expected: [<Issue: 1>, <Issue: 2>, <Issue: 3>] Got: [] ====================================================================== FAIL: Doctest: modeltests.custom_methods.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.custom_methods.models.__test__.API_TESTS File "~/django/tests/modeltests/custom_methods/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_methods/models.py", line ?, in modeltests.custom_methods.models.__test__.API_TESTS Failed example: a.articles_from_same_day_1() Expected: [<Article: Beatles reunite>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_methods/models.py", line ?, in modeltests.custom_methods.models.__test__.API_TESTS Failed example: b.articles_from_same_day_1() Expected: [<Article: Area man programs in Python>] Got: [] ====================================================================== FAIL: Doctest: modeltests.custom_columns.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.custom_columns.models.__test__.API_TESTS File "~/django/tests/modeltests/custom_columns/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_columns/models.py", line ?, in modeltests.custom_columns.models.__test__.API_TESTS Failed example: Author.objects.all() Expected: [<Author: Peter Jones>, <Author: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_columns/models.py", line ?, in modeltests.custom_columns.models.__test__.API_TESTS Failed example: Author.objects.filter(first_name__exact='John') Expected: [<Author: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_columns/models.py", line ?, in modeltests.custom_columns.models.__test__.API_TESTS Failed example: art.authors.all() Expected: [<Author: Peter Jones>, <Author: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_columns/models.py", line ?, in modeltests.custom_columns.models.__test__.API_TESTS Failed example: a.article_set.all() Expected: [<Article: Django lets you build web apps easily>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_columns/models.py", line ?, in modeltests.custom_columns.models.__test__.API_TESTS Failed example: art.authors.filter(last_name='Jones') Expected: [<Author: Peter Jones>] Got: [] ====================================================================== FAIL: Doctest: modeltests.custom_managers.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.custom_managers.models.__test__.API_TESTS File "~/django/tests/modeltests/custom_managers/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_managers/models.py", line ?, in modeltests.custom_managers.models.__test__.API_TESTS Failed example: Person.objects.get_fun_people() Expected: [<Person: Bugs Bunny>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_managers/models.py", line ?, in modeltests.custom_managers.models.__test__.API_TESTS Failed example: Book.published_objects.all() Expected: [<Book: How to program>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_managers/models.py", line ?, in modeltests.custom_managers.models.__test__.API_TESTS Failed example: Car.cars.order_by('name') Expected: [<Car: Corvette>, <Car: Neon>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_managers/models.py", line ?, in modeltests.custom_managers.models.__test__.API_TESTS Failed example: Car.fast_cars.all() Expected: [<Car: Corvette>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_managers/models.py", line ?, in modeltests.custom_managers.models.__test__.API_TESTS Failed example: Car._default_manager.order_by('name') Expected: [<Car: Corvette>, <Car: Neon>] Got: [] ====================================================================== FAIL: Doctest: modeltests.basic.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.basic.models.__test__.API_TESTS File "~/django/tests/modeltests/basic/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Area woman programs in Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.filter(pub_date__year=2005) Expected: [<Article: Area woman programs in Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.filter(pub_date__year=2005, pub_date__month=7) Expected: [<Article: Area woman programs in Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.filter(pk__in=[1]) Expected: [<Article: Area woman programs in Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.dates('pub_date', 'year') Expected: [datetime.datetime(2005, 1, 1, 0, 0)] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.dates('pub_date', 'month') Expected: [datetime.datetime(2005, 7, 1, 0, 0)] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.dates('pub_date', 'day') Expected: [datetime.datetime(2005, 7, 28, 0, 0), datetime.datetime(2005, 7, 29, 0, 0), datetime.datetime(2005, 7, 30, 0, 0), datetime.datetime(2005, 7, 31, 0, 0)] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.dates('pub_date', 'day', order='ASC') Expected: [datetime.datetime(2005, 7, 28, 0, 0), datetime.datetime(2005, 7, 29, 0, 0), datetime.datetime(2005, 7, 30, 0, 0), datetime.datetime(2005, 7, 31, 0, 0)] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.dates('pub_date', 'day', order='DESC') Expected: [datetime.datetime(2005, 7, 31, 0, 0), datetime.datetime(2005, 7, 30, 0, 0), datetime.datetime(2005, 7, 29, 0, 0), datetime.datetime(2005, 7, 28, 0, 0)] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: s1 | s2 Expected: [<Article: Area woman programs in Python>, <Article: Second article>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[0] Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.basic.models.__test__.API_TESTS[81]>", line 1, in <module> Article.objects.all()[0] File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[1:3] Expected: [<Article: Second article>, <Article: Third article>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[0L] Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.basic.models.__test__.API_TESTS[85]>", line 1, in <module> Article.objects.all()[0L] File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[1L:3L] Expected: [<Article: Second article>, <Article: Third article>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[1:3L] Expected: [<Article: Second article>, <Article: Third article>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[0:5].filter() Expected: [<Article: Area woman programs in Python>, <Article: Second article>, <Article: Third article>, <Article: Article 6>, <Article: Default headline>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[0:5][0:2] Expected: [<Article: Area woman programs in Python>, <Article: Second article>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[0:5][:2] Expected: [<Article: Area woman programs in Python>, <Article: Second article>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[0:5][4:] Expected: [<Article: Default headline>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[2:][0:2] Expected: [<Article: Third article>, <Article: Article 6>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[2:][:2] Expected: [<Article: Third article>, <Article: Article 6>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[2:][2:3] Expected: [<Article: Default headline>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all()[5:] Expected: [<Article: Fourth article>, <Article: Article 7>, <Article: Updated article 8>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/basic/models.py", line ?, in modeltests.basic.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Area woman programs in Python>, <Article: Second article>, <Article: Third article>, <Article: Article 6>, <Article: Default headline>, <Article: Fourth article>, <Article: Article 7>, <Article: Updated article 8>] Got: [] ====================================================================== FAIL: Doctest: modeltests.many_to_one.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.many_to_one.models.__test__.API_TESTS File "~/django/tests/modeltests/many_to_one/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r2.article_set.all() Expected: [<Article: Paul's story>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r2.article_set.all() Expected: [<Article: John's second story>, <Article: Paul's story>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r2.article_set.all() Expected: [<Article: Paul's story>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.all() Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: r.article_set.filter(headline__startswith='This') Expected: [<Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(id__exact=1) Expected: [<Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(pk=1) Expected: [<Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(headline__startswith='This') Expected: [<Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__first_name__exact='John') Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__first_name='John') Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__first_name__exact='John', reporter__last_name__exact='Smith') Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__first_name__exact='John').extra(where=["many_to _one_reporter.last_name='Smith'"]) Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__first_name__exact='John').extra(where=["many_to _one_reporter.last_name='%s'" % u'Smith']) Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__id__exact=1) Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__pk=1) Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter=1) Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter=r) Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__in=[1,2]).distinct() Expected: [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__in=[r,r2]).distinct() Expected: [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.filter(reporter__in=Reporter.objects.filter(first_name='John').v alues('pk').query).distinct() Expected: [<Article: John's second story>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(id__exact=1) Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(pk=1) Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(first_name__startswith='John') Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__id__exact=1) Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__pk=1) Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article=1) Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article=a) Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__in=[1,4]).distinct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__in=[1,a3]).distinct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__in=[a,a3]).distinct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__headline__startswith='This') Expected: [<Reporter: John Smith>, <Reporter: John Smith>, <Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__headline__startswith='This').distinct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__reporter__first_name__startswith='John') Expected: [<Reporter: John Smith>, <Reporter: John Smith>, <Reporter: John Smith>, <Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__reporter__first_name__startswith='John').distin ct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__reporter__exact=r).distinct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.filter(article__reporter=r).distinct() Expected: [<Reporter: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>, <Article: This is a test>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.order_by('first_name') Expected: [<Reporter: John Smith>, <Reporter: Paul Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: John's second story>, <Article: This is a test>, <Article: This is a test>, <Article: This is a test>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_one/models.py", line ?, in modeltests.many_to_one.models.__test__.API_TESTS Failed example: Reporter.objects.order_by('first_name') Expected: [<Reporter: John Smith>] Got: [] ====================================================================== FAIL: Doctest: modeltests.custom_pk.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.custom_pk.models.__test__.API_TESTS File "~/django/tests/modeltests/custom_pk/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Employee.objects.all() Expected: [<Employee: Dan Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Employee.objects.all() Expected: [<Employee: Fran Bones>, <Employee: Dan Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Employee.objects.filter(pk__in=[123, 456]) Expected: [<Employee: Fran Bones>, <Employee: Dan Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Employee.objects.filter(last_name__exact='Jones') Expected: [<Employee: Dan Jones>, <Employee: Fran Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: b.employees.all() Expected: [<Employee: Dan Jones>, <Employee: Fran Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: fran.business_set.all() Expected: [<Business: Sears>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Business.objects.filter(name__exact='Sears') Expected: [<Business: Sears>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Business.objects.filter(pk='Sears') Expected: [<Business: Sears>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Employee.objects.filter(business__name__exact='Sears') Expected: [<Employee: Dan Jones>, <Employee: Fran Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Employee.objects.filter(business__pk='Sears') Expected: [<Employee: Dan Jones>, <Employee: Fran Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Business.objects.filter(employees__employee_code__exact=123) Expected: [<Business: Sears>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Business.objects.filter(employees__pk=123) Expected: [<Business: Sears>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/custom_pk/models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: Business.objects.filter(employees__first_name__startswith='Fran') Expected: [<Business: Sears>] Got: [] ====================================================================== FAIL: Doctest: modeltests.model_formsets.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.model_formsets.models.__test__.API_TESTS File "~/django/tests/modeltests/model_formsets/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_formsets/models.py", line ?, in modeltests.model_formsets.models.__test__.API_TESTS Failed example: instances[0].authors.all() Expected: [<Author: Charles Baudelaire>, <Author: John Steinbeck>, <Author: Paul Verlaine>, <Author: Walt Whitman>] Got: [] ====================================================================== FAIL: Doctest: modeltests.pagination.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.pagination.models.__test__.API_TESTS File "~/django/tests/modeltests/pagination/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/pagination/models.py", line ?, in modeltests.pagination.models.__test__.API_TESTS Failed example: p.object_list Expected: [<Article: Article 1>, <Article: Article 2>, <Article: Article 3>, <Article: Article 4>, <Article: Article 5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/pagination/models.py", line ?, in modeltests.pagination.models.__test__.API_TESTS Failed example: p.object_list Expected: [<Article: Article 6>, <Article: Article 7>, <Article: Article 8>, <Article: Article 9>] Got: [] ====================================================================== FAIL: Doctest: modeltests.one_to_one.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.one_to_one.models.__test__.API_TESTS File "~/django/tests/modeltests/one_to_one/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Restaurant.objects.all() Expected: [<Restaurant: Demon Dogs the restaurant>, <Restaurant: Ace Hardware the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Place.objects.order_by('name') Expected: [<Place: Ace Hardware the place>, <Place: Demon Dogs the place>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(restaurant__place__pk=1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(restaurant__place__exact=1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(restaurant__place__exact=p1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(restaurant__pk=1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(id__exact=1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(pk=1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(restaurant=1) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/one_to_one/models.py", line ?, in modeltests.one_to_one.models.__test__.API_TESTS Failed example: Waiter.objects.filter(restaurant=r) Expected: [<Waiter: Joe the waiter at Demon Dogs the restaurant>] Got: [] ====================================================================== FAIL: Doctest: modeltests.ordering.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.ordering.models.__test__.API_TESTS File "~/django/tests/modeltests/ordering/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Article 4>, <Article: Article 2>, <Article: Article 3>, <Article: Article 1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.order_by('headline') Expected: [<Article: Article 1>, <Article: Article 2>, <Article: Article 3>, <Article: Article 4>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.order_by('pub_date', '-headline') Expected: [<Article: Article 1>, <Article: Article 3>, <Article: Article 2>, <Article: Article 4>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.order_by('id') Expected: [<Article: Article 1>, <Article: Article 2>, <Article: Article 3>, <Article: Article 4>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.order_by('id').order_by('-headline') Expected: [<Article: Article 4>, <Article: Article 3>, <Article: Article 2>, <Article: Article 1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.order_by('headline')[:2] Expected: [<Article: Article 1>, <Article: Article 2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.order_by('headline')[1:3] Expected: [<Article: Article 2>, <Article: Article 3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.all()[0] Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.ordering.models.__test__.API_TESTS[16]>", line 1, in <module> Article.objects.all()[0] File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.all().reverse()[:2] Expected: [<Article: Article 1>, <Article: Article 3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.extra(select={'foo': 'pub_date'}, order_by=['foo', 'headline']) Expected: [<Article: Article 1>, <Article: Article 2>, <Article: Article 3>, <Article: Article 4>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/ordering/models.py", line ?, in modeltests.ordering.models.__test__.API_TESTS Failed example: Article.objects.extra(select={'order': 'pub_date'}, order_by=['order', 'headline']) Expected: [<Article: Article 1>, <Article: Article 2>, <Article: Article 3>, <Article: Article 4>] Got: [] ====================================================================== FAIL: Doctest: modeltests.delete.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.delete.models.__test__.API_TESTS File "~/django/tests/modeltests/delete/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/delete/models.py", line ?, in modeltests.delete.models.__test__.API_TESTS Failed example: e1.delete() Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.delete.models.__test__.API_TESTS[56]>", line 1, in <module> e1.delete() File "~/django/django/db/models/base.py", line 464, in delete delete_objects(seen_objs) File "~/django/django/db/models/query.py", line 980, in delete_objects del_query.delete_batch(pk_list) File "~/django/django/db/models/sql/subqueries.py", line 87, in delete_batch self.do_query(self.model._meta.db_table, where) File "~/django/django/db/models/sql/subqueries.py", line 34, in do_query self.execute_sql(None) File "~/django/django/db/models/sql/query.py", line 1959, in execute_sql cursor.execute(sql, params) File "/home/ramiro/src/django-pyodbc/trunk/sql_server/pyodbc/base.py", line 221, in execute return self.cursor.execute(sql, params) IntegrityError: ('23000', "[23000] [FreeTDS][SQL Server]DELETE statement conflicted with COLUMN REFERENCE constraint 'f_id_refs_id_52a6fc20'. The conflict occurred in database 'test_ramiro', table 'delete_e', column 'f_id'. (547) (SQLExecDirectW)") ---------------------------------------------------------------------- File "~/django/tests/modeltests/delete/models.py", line ?, in modeltests.delete.models.__test__.API_TESTS Failed example: f2.delete() Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.delete.models.__test__.API_TESTS[66]>", line 1, in <module> f2.delete() File "~/django/django/db/models/base.py", line 464, in delete delete_objects(seen_objs) File "~/django/django/db/models/query.py", line 980, in delete_objects del_query.delete_batch(pk_list) File "~/django/django/db/models/sql/subqueries.py", line 87, in delete_batch self.do_query(self.model._meta.db_table, where) File "~/django/django/db/models/sql/subqueries.py", line 34, in do_query self.execute_sql(None) File "~/django/django/db/models/sql/query.py", line 1959, in execute_sql cursor.execute(sql, params) File "/home/ramiro/src/django-pyodbc/trunk/sql_server/pyodbc/base.py", line 221, in execute return self.cursor.execute(sql, params) IntegrityError: ('23000', "[23000] [FreeTDS][SQL Server]DELETE statement conflicted with COLUMN REFERENCE constraint 'f_id_refs_id_52a6fc20'. The conflict occurred in database 'test_ramiro', table 'delete_e', column 'f_id'. (547) (SQLExecDirectW)") ====================================================================== FAIL: Doctest: modeltests.or_lookups.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.or_lookups.models.__test__.API_TESTS File "~/django/tests/modeltests/or_lookups/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(headline__startswith='Hello') | Article.objects.filter(headline__startswith='Goodbye') Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(headline__startswith='Hello') | Q(headline__startswith='Goodbye')) Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: articles.filter(headline__startswith='Hello') & articles.filter(headline__contains='bye') Expected: [<Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(headline__contains='bye'), headline__startswith='Hello') Expected: [<Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(headline__contains='Hello') | Article.objects.filter(headline__contains='bye') Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(headline__iexact='Hello') | Article.objects.filter(headline__contains='ood') Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(pk=1) | Q(pk=2)) Expected: [<Article: Hello>, <Article: Goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(pk=1) | Q(pk=2) | Q(pk=3)) Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(pk__in=[1,2,3]) Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(pk__in=(1,2,3)) Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(pk__in=[1,2,3,4]) Expected: [<Article: Hello>, <Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(pk__in=[]) | Q(headline__icontains='goodbye')) Expected: [<Article: Goodbye>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(headline__startswith='Hello'), Q(headline__contains='bye')) Expected: [<Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(headline__contains='bye'), headline__startswith='Hello') Expected: [<Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(pk=1) | ~Q(pk=2)) Expected: [<Article: Hello>, <Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(~Q(pk=1) & ~Q(pk=2)) Expected: [<Article: Hello and goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.filter(Q(pk=1) & (~Q(pk=2) | Q(pk=3))) Expected: [<Article: Hello>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.exclude(Q(headline__startswith='Hello')) Expected: [<Article: Goodbye>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.complex_filter({'pk': 1}) Expected: [<Article: Hello>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/or_lookups/models.py", line ?, in modeltests.or_lookups.models.__test__.API_TESTS Failed example: Article.objects.complex_filter(Q(pk=1) | Q(pk=2)) Expected: [<Article: Hello>, <Article: Goodbye>] Got: [] ====================================================================== FAIL: Doctest: modeltests.m2o_recursive.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2o_recursive.models.__test__.API_TESTS File "~/django/tests/modeltests/m2o_recursive/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2o_recursive/models.py", line ?, in modeltests.m2o_recursive.models.__test__.API_TESTS Failed example: r.child_set.all() Expected: [<Category: Child category>] Got: [] ====================================================================== FAIL: Doctest: modeltests.transactions.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.transactions.models.__test__.API_TESTS File "~/django/tests/modeltests/transactions/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/transactions/models.py", line ?, in modeltests.transactions.models.__test__.API_TESTS Failed example: Reporter.objects.all() Expected: [<Reporter: Alice Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/transactions/models.py", line ?, in modeltests.transactions.models.__test__.API_TESTS Failed example: Reporter.objects.all() Expected: [<Reporter: Alice Smith>, <Reporter: Ben Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/transactions/models.py", line ?, in modeltests.transactions.models.__test__.API_TESTS Failed example: Reporter.objects.all() Expected: [<Reporter: Alice Smith>, <Reporter: Ben Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/transactions/models.py", line ?, in modeltests.transactions.models.__test__.API_TESTS Failed example: Reporter.objects.all() Expected: [<Reporter: Ben Jones>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/transactions/models.py", line ?, in modeltests.transactions.models.__test__.API_TESTS Failed example: Reporter.objects.all() Expected: [<Reporter: Ben Jones>, <Reporter: Carol Doe>] Got: [] ====================================================================== FAIL: Doctest: modeltests.generic_relations.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.generic_relations.models.__test__.API_TESTS File "~/django/tests/modeltests/generic_relations/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: lion.tags.all() Expected: [<TaggedItem: hairy>, <TaggedItem: yellow>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: bacon.tags.all() Expected: [<TaggedItem: fatty>, <TaggedItem: salty>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: TaggedItem.objects.filter(content_type__pk=ctype.id, object_id=quartz.id) Expected: [<TaggedItem: clearish>, <TaggedItem: shiny>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: platypus.tags.all() Expected: [<TaggedItem: fatty>, <TaggedItem: shiny>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: TaggedItem.objects.filter(content_type__pk=ctype.id, object_id=quartz.id) Expected: [<TaggedItem: clearish>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: Animal.objects.order_by('common_name') Expected: [<Animal: Lion>, <Animal: Platypus>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: Animal.objects.filter(tags__tag='fatty') Expected: [<Animal: Platypus>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: Animal.objects.exclude(tags__tag='fatty') Expected: [<Animal: Lion>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: bacon.tags.all() Expected: [<TaggedItem: salty>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: TaggedItem.objects.filter(tag='fatty').delete() Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.generic_relations.models.__test__.API_TESTS[38]>", line 1, in <module> TaggedItem.objects.filter(tag='fatty').delete() File "~/django/django/db/models/query.py", line 427, in delete for object in del_query[:CHUNK_SIZE]: File "~/django/django/db/models/query.py", line 186, in _result_iter self._fill_cache() File "~/django/django/db/models/query.py", line 667, in _fill_cache self._result_cache.append(self._iter.next()) File "~/django/django/db/models/query.py", line 281, in iterator for row in self.query.results_iter(): File "~/django/django/db/models/sql/query.py", line 240, in results_iter for rows in self.execute_sql(MULTI): File "~/django/django/db/models/sql/query.py", line 1950, in execute_sql sql, params = self.as_sql() File "/home/ramiro/src/django-pyodbc/trunk/sql_server/pyodbc/query.py", line 197, in as_sql field, order = o.split(".")[-1].split(' ') AttributeError: 'list' object has no attribute 'split' ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: Animal.objects.filter(tags__content_type=ctype) Expected: [<Animal: Platypus>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: cheetah.comparisons.all() Expected: [<Comparison: cheetah is faster than tiger>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: tiger.comparisons.filter(comparative="cooler") Expected: [<Comparison: tiger is cooler than cheetah>, <Comparison: tiger is cooler than bear>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: tiger.comparisons.filter(comparative__in=subjective).delete() Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.generic_relations.models.__test__.API_TESTS[50]>", line 1, in <module> tiger.comparisons.filter(comparative__in=subjective).delete() File "~/django/django/db/models/query.py", line 427, in delete for object in del_query[:CHUNK_SIZE]: File "~/django/django/db/models/query.py", line 186, in _result_iter self._fill_cache() File "~/django/django/db/models/query.py", line 667, in _fill_cache self._result_cache.append(self._iter.next()) File "~/django/django/db/models/query.py", line 281, in iterator for row in self.query.results_iter(): File "~/django/django/db/models/sql/query.py", line 240, in results_iter for rows in self.execute_sql(MULTI): File "~/django/django/db/models/sql/query.py", line 1950, in execute_sql sql, params = self.as_sql() File "/home/ramiro/src/django-pyodbc/trunk/sql_server/pyodbc/query.py", line 197, in as_sql field, order = o.split(".")[-1].split(' ') AttributeError: 'list' object has no attribute 'split' ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: Comparison.objects.all() Expected: [<Comparison: cheetah is faster than tiger>, <Comparison: tiger is stronger than cheetah>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: Comparison.objects.all() Expected: [<Comparison: tiger is stronger than None>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: formset = GenericFormSet(instance=platypus) Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.generic_relations.models.__test__.API_TESTS[62]>", line 1, in <module> formset = GenericFormSet(instance=platypus) File "~/django/django/contrib/contenttypes/generic.py", line 303, in __init__ prefix=self.rel_name File "~/django/django/forms/models.py", line 360, in __init__ super(BaseModelFormSet, self).__init__(**defaults) File "~/django/django/forms/formsets.py", line 67, in __init__ self._construct_forms() File "~/django/django/forms/formsets.py", line 76, in _construct_forms self.forms.append(self._construct_form(i)) File "~/django/django/forms/models.py", line 364, in _construct_form kwargs['instance'] = self.get_queryset()[i] File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/modeltests/generic_relations/models.py", line ?, in modeltests.generic_relations.models.__test__.API_TESTS Failed example: for form in formset.forms: print form.as_p() Expected: <p><label for="id_generic_relations-taggeditem-content_type-object_id-0-tag">Tag:</label> <input id="id_generic_relations-taggeditem-content_type-object_id-0-tag" type="text" name="generic_relations-taggeditem-content_type-object_id-0-tag" value="shiny" maxlength="50" /></p> <p><label for="id_generic_relations-taggeditem-content_type-object_id-0-DELETE">Delete:</l abel> <input type="checkbox" name="generic_relations-taggeditem-content_type-object_id-0-DELETE" id="id_generic_relations-taggeditem-content_type-object_id-0-DELETE" /><input type="hidden" name="generic_relations-taggeditem-content_type-object_id-0-id" value="..." id="id_generic_relations-taggeditem-content_type-object_id-0-id" /></p> <p><label for="id_generic_relations-taggeditem-content_type-object_id-1-tag">Tag:</label> <input id="id_generic_relations-taggeditem-content_type-object_id-1-tag" type="text" name="generic_relations-taggeditem-content_type-object_id-1-tag" maxlength="50" /></p> <p><label for="id_generic_relations-taggeditem-content_type-object_id-1-DELETE">Delete:</l abel> <input type="checkbox" name="generic_relations-taggeditem-content_type-object_id-1-DELETE" id="id_generic_relations-taggeditem-content_type-object_id-1-DELETE" /><input type="hidden" name="generic_relations-taggeditem-content_type-object_id-1-id" id="id_generic_relations-taggeditem-content_type-object_id-1-id" /></p> Got: <p><label for="id_generic_relations-taggeditem-content_type-object_id-0-tag">Tag:</label> <input id="id_generic_relations-taggeditem-content_type-object_id-0-tag" type="text" name="generic_relations-taggeditem-content_type-object_id-0-tag" maxlength="50" /></p> <p><label for="id_generic_relations-taggeditem-content_type-object_id-0-DELETE">Delete:</l abel> <input type="checkbox" name="generic_relations-taggeditem-content_type-object_id-0-DELETE" id="id_generic_relations-taggeditem-content_type-object_id-0-DELETE" /><input type="hidden" name="generic_relations-taggeditem-content_type-object_id-0-id" id="id_generic_relations-taggeditem-content_type-object_id-0-id" /></p> ====================================================================== FAIL: Doctest: modeltests.reserved_names.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.reserved_names.models.__test__.API_TESTS File "~/django/tests/modeltests/reserved_names/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/reserved_names/models.py", line ?, in modeltests.reserved_names.models.__test__.API_TESTS Failed example: Thing.objects.order_by('when') Expected: [<Thing: a>, <Thing: h>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/reserved_names/models.py", line ?, in modeltests.reserved_names.models.__test__.API_TESTS Failed example: Thing.objects.dates('where', 'year') Expected: [datetime.datetime(2005, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/reserved_names/models.py", line ?, in modeltests.reserved_names.models.__test__.API_TESTS Failed example: Thing.objects.filter(where__month=1) Expected: [<Thing: a>] Got: [] ====================================================================== FAIL: Doctest: modeltests.fixtures.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.fixtures.models.__test__.API_TESTS File "~/django/tests/modeltests/fixtures/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Time to reform copyright>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Django conquers world!>, <Article: Copyright is fine the way it is>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: XML identified as leading cause of cancer>, <Article: Django conquers world!>, <Article: Copyright is fine the way it is>, <Article: Poker on TV is great!>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: XML identified as leading cause of cancer>, <Article: Django conquers world!>, <Article: Copyright is fine the way it is>, <Article: Poker on TV is great!>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Time to reform copyright>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Time to reform copyright>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Django pets kitten>, <Article: Time to reform copyright>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Django pets kitten>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: WoW subscribers now outnumber readers>, <Article: Python program becomes self aware>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/fixtures/models.py", line ?, in modeltests.fixtures.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: WoW subscribers now outnumber readers>, <Article: Python program becomes self aware>] Got: [] ====================================================================== FAIL: Doctest: modeltests.many_to_many.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.many_to_many.models.__test__.API_TESTS File "~/django/tests/modeltests/many_to_many/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: a1.publications.all() Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: a2.publications.all() Expected: [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: p2.article_set.all() Expected: [<Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: p1.article_set.all() Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.get(id=4).article_set.all() Expected: [<Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__id__exact=1) Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__pk=1) Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications=1) Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications=p1) Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__title__startswith="Science") Expected: [<Article: NASA uses Python>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__title__startswith="Science").distinct() Expected: [<Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__in=[1,2]).distinct() Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__in=[1,p2]).distinct() Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.filter(publications__in=[p1,p2]).distinct() Expected: [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(id__exact=1) Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(pk=1) Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article__headline__startswith="NASA") Expected: [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article__id__exact=1) Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article__pk=1) Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article=1) Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article=a1) Expected: [<Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article__in=[1,2]).distinct() Expected: [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article__in=[1,a2]).distinct() Expected: [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.filter(article__in=[a1,a2]).distinct() Expected: [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.exclude(publications=p2) Expected: [<Article: Django lets you build Web apps easily>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Publication.objects.all() Expected: [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: Article.objects.all() Expected: [<Article: Django lets you build Web apps easily>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: p2.article_set.all() Expected: [<Article: NASA finds intelligent life on Earth>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: a4.publications.all() Expected: [<Publication: Science News>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/many_to_many/models.py", line ?, in modeltests.many_to_many.models.__test__.API_TESTS Failed example: p2.article_set.all() Expected: [<Article: NASA finds intelligent life on Earth>, <Article: Oxygen-free diet works wonders>] Got: [] ====================================================================== FAIL: Doctest: modeltests.model_inheritance.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.model_inheritance.models.__test__.API_TESTS File "~/django/tests/modeltests/model_inheritance/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: Worker.objects.values('name') Expected: [{'name': u'Barney'}, {'name': u'Fred'}] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ItalianRestaurant.objects.filter(address='1234 W. Ash') Expected: [<ItalianRestaurant: Ristorante Miron the italian restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ItalianRestaurant.objects.filter(address='1234 W. Elm') Expected: [<ItalianRestaurant: Ristorante Miron the italian restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: Restaurant.objects.filter(name='Demon Dogs') Expected: [<Restaurant: Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ItalianRestaurant.objects.filter(address='1234 W. Elm') Expected: [<ItalianRestaurant: Ristorante Miron the italian restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: Place.objects.filter(name='Demon Dogs') Expected: [<Place: Demon Dogs the place>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ir.provider.order_by('-name') Expected: [<Supplier: Luigi's Pasta the supplier>, <Supplier: Joe's Chickens the supplier>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: Restaurant.objects.filter(provider__name__contains="Chickens") Expected: [<Restaurant: Ristorante Miron the restaurant>, <Restaurant: Demon Dogs the restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ItalianRestaurant.objects.filter(provider__name__contains="Chickens") Expected: [<ItalianRestaurant: Ristorante Miron the italian restaurant>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ItalianRestaurant.objects.all()[0].chef Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.model_inheritance.models.__test__.API_TESTS[70]>", line 1, in <module> ItalianRestaurant.objects.all()[0].chef File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: len(db.connection.queries) Expected: 2 Got: 0 ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: ItalianRestaurant.objects.select_related('chef')[0].chef Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.model_inheritance.models.__test__.API_TESTS[72]>", line 1, in <module> ItalianRestaurant.objects.select_related('chef')[0].chef File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/modeltests/model_inheritance/models.py", line ?, in modeltests.model_inheritance.models.__test__.API_TESTS Failed example: len(db.connection.queries) Expected: 3 Got: 0 ====================================================================== FAIL: Doctest: modeltests.m2m_through.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2m_through.models.__test__.API_TESTS File "~/django/tests/modeltests/m2m_through/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: rock.members.all() Expected: [<Person: Jane>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: jim.group_set.all() Expected: [<Group: Rock>, <Group: Roll>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Membership.objects.filter(person=jim) Expected: [<Membership: Jim is a member of Rock>, <Membership: Jim is a member of Roll>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: rock.members.all() Expected: [<Person: Jane>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: jim.group_set.all() Expected: [<Group: Rock>, <Group: Roll>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: rock.custom_members.all() Expected: [<Person: Bob>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: bob.custom.all() Expected: [<Group: Rock>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: bob.custom_person_related_name.all() Expected: [<CustomMembership: Bob is a member of Rock>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: tony.friends.all() Expected: [<PersonSelfRefM2M: Chris>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: chris.friends.all() Expected: [<PersonSelfRefM2M: Tony>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: tony.friends.all() Expected: [<PersonSelfRefM2M: Chris>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Group.objects.filter(members__name='Bob') Expected: [<Group: Roll>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Group.objects.filter(membership__invite_reason="She was just awesome.") Expected: [<Group: Rock>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Person.objects.filter(group__name="Rock") Expected: [<Person: Jane>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Person.objects.filter(custom__name="Rock") Expected: [<Person: Bob>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Person.objects.filter(membership__invite_reason="She was just awesome.") Expected: [<Person: Jane>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Group.objects.filter(membership__date_joined__gt=datetime(2005, 1, 1), membership__person =jane) Expected: [<Group: Rock>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Person.objects.filter(membership__date_joined__gt=datetime(2005, 1, 1), membership__group=rock) Expected: [<Person: Jane>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Person.objects.filter(membership__date_joined__gt=datetime(2004, 1, 1)) Expected: [<Person: Jane>, <Person: Jim>, <Person: Jim>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_through/models.py", line ?, in modeltests.m2m_through.models.__test__.API_TESTS Failed example: Person.objects.filter(membership__date_joined__gt=datetime(2004, 1, 1)).distinct() Expected: [<Person: Jane>, <Person: Jim>] Got: [] ====================================================================== FAIL: Doctest: modeltests.m2o_recursive2.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2o_recursive2.models.__test__.API_TESTS File "~/django/tests/modeltests/m2o_recursive2/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2o_recursive2/models.py", line ?, in modeltests.m2o_recursive2.models.__test__.API_TESTS Failed example: dad.fathers_child_set.all() Expected: [<Person: John Smith Junior>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2o_recursive2/models.py", line ?, in modeltests.m2o_recursive2.models.__test__.API_TESTS Failed example: mom.mothers_child_set.all() Expected: [<Person: John Smith Junior>] Got: [] ====================================================================== FAIL: Doctest: modeltests.m2m_recursive.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2m_recursive.models.__test__.API_TESTS File "~/django/tests/modeltests/m2m_recursive/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.friends.all() Expected: [<Person: Bill>, <Person: Chuck>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.friends.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: c.friends.all() Expected: [<Person: Anne>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: d.friends.all() Expected: [<Person: Anne>, <Person: Chuck>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.friends.all() Expected: [<Person: Bill>, <Person: Chuck>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.friends.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.friends.all() Expected: [<Person: Chuck>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: c.friends.all() Expected: [<Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: d.friends.all() Expected: [<Person: Chuck>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.idols.all() Expected: [<Person: Bill>, <Person: Chuck>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.stalkers.all() Expected: [<Person: Bill>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.idols.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.stalkers.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: c.idols.all() Expected: [<Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: c.stalkers.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: d.stalkers.all() Expected: [<Person: Anne>, <Person: Chuck>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.idols.all() Expected: [<Person: Bill>, <Person: Chuck>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.idols.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.stalkers.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.idols.all() Expected: [<Person: Chuck>, <Person: David>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: a.stalkers.all() Expected: [<Person: Bill>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: b.idols.all() Expected: [<Person: Anne>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_recursive/models.py", line ?, in modeltests.m2m_recursive.models.__test__.API_TESTS Failed example: d.stalkers.all() Expected: [<Person: Chuck>] Got: [] ====================================================================== FAIL: Doctest: modeltests.m2m_intermediary.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.m2m_intermediary.models.__test__.API_TESTS File "~/django/tests/modeltests/m2m_intermediary/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_intermediary/models.py", line ?, in modeltests.m2m_intermediary.models.__test__.API_TESTS Failed example: a.writer_set.select_related().order_by('-position') Expected: [<Writer: John Smith (Main writer)>, <Writer: Jane Doe (Contributor)>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/modeltests/m2m_intermediary/models.py", line ?, in modeltests.m2m_intermediary.models.__test__.API_TESTS Failed example: r1.writer_set.all() Expected: [<Writer: John Smith (Main writer)>] Got: [] ====================================================================== FAIL: Doctest: modeltests.field_subclassing.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.field_subclassing.models.__test__.API_TESTS File "~/django/tests/modeltests/field_subclassing/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/modeltests/field_subclassing/models.py", line ?, in modeltests.field_subclassing.models.__test__.API_TESTS Failed example: MyModel.objects.filter(data__in=[s, s1, s2]) Expected: [<MyModel: m>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.m2m_regress.models.__test__.regressions ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.m2m_regress.models.__test__.regressions File "~/django/tests/regressiontests/m2m_regress/models.py", line unknown line number, in regressions ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_regress/models.py", line ?, in regressiontests.m2m_regress.models.__test__.regressions Failed example: s1.references.all() Expected: [<SelfRefer: s2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_regress/models.py", line ?, in regressiontests.m2m_regress.models.__test__.regressions Failed example: s1.related.all() Expected: [<SelfRefer: s3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_regress/models.py", line ?, in regressiontests.m2m_regress.models.__test__.regressions Failed example: e1.topics.all() Expected: [<Tag: t1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_regress/models.py", line ?, in regressiontests.m2m_regress.models.__test__.regressions Failed example: e1.related.all() Expected: [<Tag: t2>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.extra_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.extra_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/extra_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/extra_regress/models.py", line ?, in regressiontests.extra_regress.models.__test__.API_TESTS Failed example: qs Expected: [<RevisionableModel: Second Revision (2, 1)>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/extra_regress/models.py", line ?, in regressiontests.extra_regress.models.__test__.API_TESTS Failed example: qs2 Expected: [<RevisionableModel: First Revision (1, 1)>, <RevisionableModel: Second Revision (2, 1)>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/extra_regress/models.py", line ?, in regressiontests.extra_regress.models.__test__.API_TESTS Failed example: qs & qs2 Expected: [<RevisionableModel: Second Revision (2, 1)>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.backends.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.backends.models.__test__.API_TESTS File "~/django/tests/regressiontests/backends/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/backends/models.py", line ?, in regressiontests.backends.models.__test__.API_TESTS Failed example: Square.objects.order_by('root') Expected: [<Square: -5 ** 2 == 25>, <Square: -4 ** 2 == 16>, <Square: -3 ** 2 == 9>, <Square: -2 ** 2 == 4>, <Square: -1 ** 2 == 1>, <Square: 0 ** 2 == 0>, <Square: 1 ** 2 == 1>, <Square: 2 ** 2 == 4>, <Square: 3 ** 2 == 9>, <Square: 4 ** 2 == 16>, <Square: 5 ** 2 == 25>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.managers_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.managers_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/managers_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child1.manager1.all() Expected: [<Child1: a1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child1.manager2.all() Expected: [<Child1: a2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child1._default_manager.all() Expected: [<Child1: a1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child2._default_manager.all() Expected: [<Child2: b1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child2.restricted.all() Expected: [<Child2: b2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child3._default_manager.all() Expected: [<Child3: c1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child3.manager1.all() Expected: [<Child3: c1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child3.manager2.all() Expected: [<Child3: c2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child4._default_manager.order_by('data') Expected: [<Child4: d1>, <Child4: d2>, <Child4: f1>, <Child4: f2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child4.manager1.all() Expected: [<Child4: d1>, <Child4: f1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child5._default_manager.all() Expected: [<Child5: fred>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child6._default_manager.all() Expected: [<Child6: f1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/managers_regress/models.py", line ?, in regressiontests.managers_regress.models.__test__.API_TESTS Failed example: Child7._default_manager.order_by('name') Expected: [<Child7: barney>, <Child7: fred>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.many_to_one_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.many_to_one_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/many_to_one_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/many_to_one_regress/models.py", line ?, in regressiontests.many_to_one_regress.models.__test__.API_TESTS Failed example: Relation.objects.filter(left__category__name__in=['First'], right__category__name__in=['Second']) Expected: [<Relation: First - Second>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/many_to_one_regress/models.py", line ?, in regressiontests.many_to_one_regress.models.__test__.API_TESTS Failed example: Category.objects.filter(record__left_set__right__category__name='Second').order_ by('name') Expected: [<Category: First>, <Category: Second>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.queries.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.queries.models.__test__.API_TESTS File "~/django/tests/regressiontests/queries/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__isnull=True) Expected: [<Item: three>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__id__isnull=True) Expected: [<Item: three>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(item=i2) Expected: [<Author: a2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(item=i3) Expected: [<Author: a2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(item=i2) & Author.objects.filter(item=i3) Expected: [<Author: a2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(Q(tags=t1)).order_by('name') Expected: [<Item: one>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(Q(tags=t1)).filter(Q(tags=t2)) Expected: [<Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(Q(tags=t1)).filter(Q(creator__name='fred')|Q(tags=t2)) Expected: [<Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags=t1).filter(tags=t2) Expected: [<Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__in=[t1, t2]).distinct().order_by('name') Expected: [<Item: one>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__in=[t1, t2]).filter(tags=t3) Expected: [<Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__in=[t1, t2]).order_by('name')[:3] Expected: [<Item: one>, <Item: one>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__in=[t1, t2]).distinct().order_by('name')[:3] Expected: [<Item: one>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(item__name='one') | Author.objects.filter(name='a3') Expected: [<Author: a1>, <Author: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(Q(item__name='one') | Q(name='a3')) Expected: [<Author: a1>, <Author: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(Q(name='a3') | Q(item__name='one')) Expected: [<Author: a1>, <Author: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(Q(item__name='three') | Q(report__name='r3')) Expected: [<Author: a2>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Number.objects.filter(num__gt=8, num__lt=13) Expected: [<Number: 12>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Number.objects.filter(Q(num__gt=7) & Q(num__lt=12) | Q(num__lt=4)) Expected: [<Number: 8>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: LeafA.objects.filter(Q(data='first')|Q(join__b__data='second')) Expected: [<LeafA: first>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: q1 Expected: [<Item: four>, <Item: one>, <Item: three>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: q2 Expected: [<Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: (q1 | q2).order_by('name') Expected: [<Item: four>, <Item: one>, <Item: three>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: (q1 & q2).order_by('name') Expected: [<Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: ((q1 & q2) | q3).order_by('name') Expected: [<Item: four>, <Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Report.objects.filter(creator=1001) Expected: [<Report: r1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Report.objects.filter(creator__num=1001) Expected: [<Report: r1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Report.objects.filter(creator__id=a1.id) Expected: [<Report: r1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Report.objects.filter(creator__name='a1') Expected: [<Report: r1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(report__name='r1') Expected: [<Author: a1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: a1.report_set.all() Expected: [<Report: r1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__name='t4') Expected: [<Item: four>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.exclude(tags__name='t4').order_by('name').distinct() Expected: [<Item: one>, <Item: three>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.exclude(tags__name='t4').order_by('name').distinct().reverse() Expected: [<Item: two>, <Item: three>, <Item: one>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.exclude(item__name='one').distinct().order_by('name') Expected: [<Author: a2>, <Author: a3>, <Author: a4>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.exclude(tags__name='t1').order_by('name') Expected: [<Item: four>, <Item: three>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.exclude(tags__name='t1').exclude(tags__name='t4') Expected: [<Item: three>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.filter(parent__isnull=True).order_by('name') Expected: [<Tag: t1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.exclude(parent__isnull=True).order_by('name') Expected: [<Tag: t2>, <Tag: t3>, <Tag: t4>, <Tag: t5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.exclude(Q(parent__name='t1') | Q(parent__isnull=True)).order_by('name') Expected: [<Tag: t4>, <Tag: t5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.exclude(Q(parent__isnull=True) | Q(parent__name='t1')).order_by('name') Expected: [<Tag: t4>, <Tag: t5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.exclude(Q(parent__parent__isnull=True)).order_by('name') Expected: [<Tag: t4>, <Tag: t5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.filter(~Q(parent__parent__isnull=True)).order_by('name') Expected: [<Tag: t4>, <Tag: t5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__in=[t]) Expected: [<Item: four>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.filter(item__isnull=True) Expected: [<Author: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Tag.objects.filter(item__isnull=True) Expected: [<Tag: t5>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.extra(tables=['queries_author']).select_related().order_by('name')[ :1] Expected: [<Item: four>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.order_by('note__note', 'name') Expected: [<Item: two>, <Item: four>, <Item: one>, <Item: three>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Author.objects.order_by('extra', '-name') Expected: [<Author: a2>, <Author: a1>, <Author: a4>, <Author: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Cover.objects.all() Expected: [<Cover: first>, <Cover: second>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.order_by('creator', 'name') Expected: [<Item: one>, <Item: three>, <Item: two>, <Item: four>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Ranking.objects.all() Expected: [<Ranking: 3: a1>, <Ranking: 2: a2>, <Ranking: 1: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Ranking.objects.all().order_by('rank') Expected: [<Ranking: 1: a3>, <Ranking: 2: a2>, <Ranking: 3: a1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(tags__isnull=False).order_by('tags', 'id') Expected: [<Item: one>, <Item: two>, <Item: one>, <Item: two>, <Item: four>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Ranking.objects.extra(tables=['django_site'], order_by=['-django_site.id', 'rank']) Expected: [<Ranking: 1: a3>, <Ranking: 2: a2>, <Ranking: 3: a1>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: qs.extra(order_by=('-good', 'id')) Expected: [<Ranking: 3: a1>, <Ranking: 2: a2>, <Ranking: 1: a3>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(Q(creator__name='a3', name='two')|Q(creator__name='a4', name='four')) Expected: [<Item: four>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Note.objects.values('misc').distinct().order_by('note', '-misc') Expected: [{'misc': u'foo'}, {'misc': u'bar'}, {'misc': u'foo'}] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: 'note_id' in ExtraInfo.objects.values()[0] Exception raised: Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest regressiontests.queries.models.__test__.API_TESTS[150]>", line 1, in <module> 'note_id' in ExtraInfo.objects.values()[0] File "~/django/django/db/models/query.py", line 239, in __getitem__ return list(qs)[0] IndexError: list index out of range ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: ExtraInfo.objects.values('note_id') Expected: [{'note_id': 1}, {'note_id': 2}] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: ExtraInfo.objects.values('note') Expected: [{'note': 1}, {'note': 2}] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/queries/models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Note.objects.exclude(Q()) Expected: [<Note: n1>, <Note: n2>, <Note: n3>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.fixtures_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.fixtures_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/fixtures_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/fixtures_regress/models.py", line ?, in regressiontests.fixtures_regress.models.__test__.API_TESTS Failed example: Stuff.objects.all() Expected: [<Stuff: None is owned by None>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/fixtures_regress/models.py", line ?, in regressiontests.fixtures_regress.models.__test__.API_TESTS Failed example: articles.values_list('id', flat=True) Expected: [1, 2, 3, 4, 5, 6, 7, 8] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/fixtures_regress/models.py", line ?, in regressiontests.fixtures_regress.models.__test__.API_TESTS Failed example: articles.values_list('id', flat=True) Expected: [1, 2, 3, 4, 5, 6, 7, 8] Got: [] ====================================================================== FAIL: Doctest: regressiontests.m2m_through_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.m2m_through_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/m2m_through_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_through_regress/models.py", line ?, in regressiontests.m2m_through_regress.models.__test__.API_TESTS Failed example: bob.group_set.all() Expected: [<Group: Rock>, <Group: Roll>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_through_regress/models.py", line ?, in regressiontests.m2m_through_regress.models.__test__.API_TESTS Failed example: roll.members.all() Expected: [<Person: Bob>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_through_regress/models.py", line ?, in regressiontests.m2m_through_regress.models.__test__.API_TESTS Failed example: frank.group_set.all() Expected: [<Group: Rock>, <Group: Roll>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/m2m_through_regress/models.py", line ?, in regressiontests.m2m_through_regress.models.__test__.API_TESTS Failed example: roll.user_members.all() Expected: [<User: frank>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.one_to_one_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.one_to_one_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/one_to_one_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/one_to_one_regress/models.py", line ?, in regressiontests.one_to_one_regress.models.__test__.API_TESTS Failed example: f.restaurants.all() Expected: [<Restaurant: Demon Dogs the restaurant>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.null_queries.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.null_queries.models.__test__.API_TESTS File "~/django/tests/regressiontests/null_queries/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/null_queries/models.py", line ?, in regressiontests.null_queries.models.__test__.API_TESTS Failed example: Choice.objects.exclude(choice=None).order_by('id') Expected: [<Choice: Choice: Because. in poll Q: Why? >, <Choice: Choice: Why Not? in poll Q: Why? >] Got: [] ====================================================================== FAIL: Doctest: regressiontests.model_inheritance_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.model_inheritance_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/model_inheritance_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/model_inheritance_regress/models.py", line ?, in regressiontests.model_inheritance_regress.models.__test__.API_TESTS Failed example: Place.objects.all() Expected: [<Place: Guido's House of Pasta the place>, <Place: Main St the place>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/model_inheritance_regress/models.py", line ?, in regressiontests.model_inheritance_regress.models.__test__.API_TESTS Failed example: Place.objects.all() Expected: [<Place: Derelict lot the place>, <Place: Guido's All New House of Pasta the place>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/model_inheritance_regress/models.py", line ?, in regressiontests.model_inheritance_regress.models.__test__.API_TESTS Failed example: Child.objects.dates('created', 'month') Expected: [datetime.datetime(2008, 6, 1, 0, 0)] Got: [] ====================================================================== FAIL: Doctest: regressiontests.custom_columns_regress.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.custom_columns_regress.models.__test__.API_TESTS File "~/django/tests/regressiontests/custom_columns_regress/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/custom_columns_regress/models.py", line ?, in regressiontests.custom_columns_regress.models.__test__.API_TESTS Failed example: Author.objects.all() Expected: [<Author: Peter Jones>, <Author: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/custom_columns_regress/models.py", line ?, in regressiontests.custom_columns_regress.models.__test__.API_TESTS Failed example: Author.objects.filter(first_name__exact='John') Expected: [<Author: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/custom_columns_regress/models.py", line ?, in regressiontests.custom_columns_regress.models.__test__.API_TESTS Failed example: art.authors.all() Expected: [<Author: Peter Jones>, <Author: John Smith>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/custom_columns_regress/models.py", line ?, in regressiontests.custom_columns_regress.models.__test__.API_TESTS Failed example: a.article_set.all() Expected: [<Article: Django lets you build web apps easily>] Got: [] ---------------------------------------------------------------------- File "~/django/tests/regressiontests/custom_columns_regress/models.py", line ?, in regressiontests.custom_columns_regress.models.__test__.API_TESTS Failed example: art.authors.filter(last_name='Jones') Expected: [<Author: Peter Jones>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.model_inheritance_select_related.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.model_inheritance_select_related.models.__test__.API_TESTS File "~/django/tests/regressiontests/model_inheritance_select_related/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/model_inheritance_select_related/models.py", line ?, in regressiontests.model_inheritance_select_related.models.__test__.API_TESTS Failed example: Person.objects.order_by('name').select_related() Expected: [<Person: Jane>, <Person: John>] Got: [] ====================================================================== FAIL: Doctest: regressiontests.reverse_single_related.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "~/django/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.reverse_single_related.models.__test__.API_TESTS File "~/django/tests/regressiontests/reverse_single_related/models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "~/django/tests/regressiontests/reverse_single_related/models.py", line ?, in regressiontests.reverse_single_related.models.__test__.API_TESTS Failed example: Source.objects.all() Expected: [<Source: Source object>] Got: []
Original issue reported on code.google.com by cra...@gmail.com on 24 Jan 2009 at 4:09
cra...@gmail.com
Fixed in r135.
Original comment by cra...@gmail.com on 24 Jan 2009 at 5:06
Original issue reported on code.google.com by
cra...@gmail.com
on 24 Jan 2009 at 4:09