(self)
| 25 | |
| 26 | class TestQuery(SimpleTestCase): |
| 27 | def test_simple_query(self): |
| 28 | query = Query(Author) |
| 29 | where = query.build_where(Q(num__gt=2)) |
| 30 | lookup = where.children[0] |
| 31 | self.assertIsInstance(lookup, GreaterThan) |
| 32 | self.assertEqual(lookup.rhs, 2) |
| 33 | self.assertEqual(lookup.lhs.target, Author._meta.get_field("num")) |
| 34 | |
| 35 | def test_non_alias_cols_query(self): |
| 36 | query = Query(Author, alias_cols=False) |
nothing calls this directly
no test coverage detected