'Tests that calling distinct on a queryset w/without parameter are evaluated properly.'

def test_queryset_with_distinct(self):

    query1 = TestModel.objects.distinct()
    self.assertEqual(len(query1._distinct_fields), 1)
    query2 = TestModel.objects.distinct(['test_id'])
    self.assertEqual(len(query2._distinct_fields), 1)
    query3 = TestModel.objects.distinct(['test_id', 'attempt_id'])
    self.assertEqual(len(query3._distinct_fields), 2)
