(self)
| 2136 | self.assertFalse(qs) |
| 2137 | |
| 2138 | def test_nested_queries_sql(self): |
| 2139 | # Nested queries should not evaluate the inner query as part of |
| 2140 | # constructing the SQL (so we should see a nested query here, indicated |
| 2141 | # by two "SELECT" calls). |
| 2142 | qs = Annotation.objects.filter(notes__in=Note.objects.filter(note="xyzzy")) |
| 2143 | self.assertEqual(qs.query.get_compiler(qs.db).as_sql()[0].count("SELECT"), 2) |
| 2144 | |
| 2145 | def test_tickets_8921_9188(self): |
| 2146 | # Incorrect SQL was being generated for certain types of exclude() |
nothing calls this directly
no test coverage detected