Exemple #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')
    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')
Exemple #3
0
 def test_get_servers(self):
     servers = Server.get(self.session)
     self.assertIsInstance(servers, list)
     self.assertIsInstance(servers[0], Server)
Exemple #4
0
 def test_create_server(self):
     server = Server()
     self.assertIsInstance(server, Server)
 def test_get_servers(self):
     servers = Server.get(self.session)
     self.assertIsInstance(servers, list)
     self.assertIsInstance(servers[0], Server)