示例#1
0
 def test_non_model_object_should_raise_inspect_error(self):
     expect(lambda: inspect(object)).to.raise_error(errors.InspectError)
示例#2
0
    def test_instance_should_have_fields_attr_with_the_dict_of_fields(self):
        model = inspect(User())

        expect(model.fields).to.have.keys(name=User.name, email=User.email)
示例#3
0
    def test_fields_attribute_dict_should_not_be_the_internal_model_dict(self):
        model = inspect(User)

        expect(model.fields).not_to.be(User._fields)