Beispiel #1
0
    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')
Beispiel #2
0
 def test_get_switchdefs(self):
     defs = SwitchDefinition.get(self.session)
     self.assertIsInstance(defs, list)
     self.assertIsInstance(defs[0], SwitchDefinition)