[core] Refactor -> replace some getter/setter pairs with attributes

Remove some set_* methods and replace them with a simple attribute.

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-09 11:49:59 +01:00
parent 068968bbf5
commit e59e969bdc
7 changed files with 16 additions and 21 deletions

View file

@ -20,6 +20,8 @@ class TestGenericModules(unittest.TestCase):
for mod in self.objects:
widgets = self.objects[mod].widgets()
for widget in widgets:
widget.link_module(self.objects[mod])
self.assertEquals(widget.module, mod)
assertWidgetAttributes(self, widget)
def test_update(self):