diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 384bda4c77..35cbbe29a7 100644
a
|
b
|
class Queries6Tests(TestCase):
|
1923 | 1923 | def test_distinct_ordered_sliced_subquery_aggregation(self): |
1924 | 1924 | self.assertEqual(Tag.objects.distinct().order_by('category__name')[:3].count(), 3) |
1925 | 1925 | |
| 1926 | def test_columns_with_the_same_name_slice(self): |
| 1927 | self.assertEqual( |
| 1928 | list(Tag.objects.order_by('name').values_list('name', 'category__name')[:2]), |
| 1929 | [('t1', 'Generic'), ('t2', 'Generic')], |
| 1930 | ) |
| 1931 | self.assertQuerysetEqual( |
| 1932 | Tag.objects.order_by('name').select_related('category')[:2], |
| 1933 | ['<Tag: t1>', '<Tag: t2>'] |
| 1934 | ) |
| 1935 | |
1926 | 1936 | |
1927 | 1937 | class RawQueriesTests(TestCase): |
1928 | 1938 | def setUp(self): |