Exemplo n.º 1
0
    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')
Exemplo n.º 2
0
    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')
Exemplo n.º 3
0
 def test_get_servers(self):
     servers = Server.get(self.session)
     self.assertIsInstance(servers, list)
     self.assertIsInstance(servers[0], Server)
Exemplo n.º 4
0
 def test_get_servers(self):
     servers = Server.get(self.session)
     self.assertIsInstance(servers, list)
     self.assertIsInstance(servers[0], Server)