def test_set_server_attributes(self): servers = Server.get(self.session) testserver = servers[0] for method in dir(testserver): if method.startswith('set_'): a = getattr(testserver, method) a('foo')
def test_get_servers(self): servers = Server.get(self.session) self.assertIsInstance(servers, list) self.assertIsInstance(servers[0], Server)
def test_create_server(self): server = Server() self.assertIsInstance(server, Server)