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