'Ensure that a query using ``get`` returns at most one result.'

def test_find_only_one(self):

    self.assertRaises(DoesNotExist, self.Person.objects.get)
    self.assertRaises(self.Person.DoesNotExist, self.Person.objects.get)
    person1 = self.Person(name='User    A', age=20)
    person1.save()
    person2 = self.Person(name='User    B', age=30)
    person2.save()
    self.assertRaises(MultipleObjectsReturned, self.Person.objects.get)
    self.assertRaises(self.Person.MultipleObjectsReturned, self.Person.objects.get)
    person = self.Person.objects.get(age=30)
    self.assertEqual(person.name, 'User    B')
    person = self.Person.objects.get(age__lt=30)
    self.assertEqual(person.name, 'User    A')
