'Ensure that documents are properly deleted from the database.'

def test_delete(self):

    self.Person(name='User    A', age=20).save()
    self.Person(name='User    B', age=30).save()
    self.Person(name='User    C', age=40).save()
    self.assertEqual(self.Person.objects.count(), 3)
    self.Person.objects(age__lt=30).delete()
    self.assertEqual(self.Person.objects.count(), 2)
    self.Person.objects.delete()
    self.assertEqual(self.Person.objects.count(), 0)
