Esempio n. 1
0
 def test_server_enabled(self):
     """
     Tests if it check if a server is enabled globally
     """
     mock = MagicMock(return_value=MockNSServer())
     with patch.object(netscaler, "_server_get", mock):
         MockNSServer.flag = None
         self.assertTrue(netscaler.server_enabled("serGrpName"))
Esempio n. 2
0
 def test_server_enabled(self):
     '''
     Tests if it check if a server is enabled globally
     '''
     mock = MagicMock(return_value=MockNSServer())
     with patch.object(netscaler, '_server_get', mock):
         MockNSServer.flag = None
         self.assertTrue(netscaler.server_enabled('serGrpName'))
Esempio n. 3
0
 def test_server_enabled(self):
     """
     Tests if it check if a server is enabled globally
     """
     mock = MagicMock(return_value=MockNSServer())
     with patch.object(netscaler, "_server_get", mock):
         MockNSServer.flag = None
         self.assertTrue(netscaler.server_enabled("serGrpName"))