'Ensure that the QuerySet.distinct method works.'

def test_distinct(self):

    self.Person(name='Mr    Orange', age=20).save()
    self.Person(name='Mr    White', age=20).save()
    self.Person(name='Mr    Orange', age=30).save()
    self.Person(name='Mr    Pink', age=30).save()
    self.assertEqual(set(self.Person.objects.distinct('name')), set(['Mr    Orange', 'Mr    White', 'Mr    Pink']))
    self.assertEqual(set(self.Person.objects.distinct('age')), set([20, 30]))
    self.assertEqual(set(self.Person.objects(age=30).distinct('name')), set(['Mr    Orange', 'Mr    Pink']))
