def test_restful_is_dirty(self):
        model = Restful()
        self.assertFalse(model.is_dirty)

        model.key = 'value'
        self.assertTrue(model.is_dirty)
Пример #2
0
    def test_restful_is_dirty(self):
        model = Restful()
        self.assertFalse(model.is_dirty)

        model.key = "value"
        self.assertTrue(model.is_dirty)
 def test_restful_get_all_attributes(self):
     model = Restful()
     model.key = 'value'
     self.assertDictEqual({'key': 'value'}, model.get_all_attributes())
Пример #4
0
 def test_restful_get_all_attributes(self):
     model = Restful()
     model.key = "value"
     self.assertDictEqual({"key": "value"}, model.get_all_attributes())