'Ensure that document may be defined using fields.'

def test_definition(self):

    self.assertEqual(['_cls', 'age', 'id', 'name'], sorted(self.Person._fields.keys()))
    self.assertEqual(['IntField', 'ObjectIdField', 'StringField', 'StringField'], sorted([x.__class__.__name__ for x in self.Person._fields.values()]))
