def test_set_switchdef_attributes(self): switchdefs = SwitchDefinition.get(self.session) testdef = switchdefs[0] for method in dir(testdef): if method.startswith('set_'): a = getattr(testdef, method) a('foo')
def test_get_switchdefs(self): defs = SwitchDefinition.get(self.session) self.assertIsInstance(defs, list) self.assertIsInstance(defs[0], SwitchDefinition)
def test_create_switchdef(self): switchdef = SwitchDefinition() self.assertIsInstance(switchdef, SwitchDefinition)