Beispiel #1
0
    def test_setattr(self):
        m = BaseModel()
        m.foo = "bar"

        assert m.data["foo"] == "bar"
Beispiel #2
0
 def test_response_result(self):
     m = BaseModel()
     with pytest.raises(NotImplementedError):
         m.response_result(None)
Beispiel #3
0
 def test_basic_init(self):
     m = BaseModel(a="one", B="two")
     assert m.data == {"A": "one", "b": "two"}
Beispiel #4
0
    def test_setattr(self):
        m = BaseModel()
        m.foo = "bar"

        assert m.data["foo"] == "bar"