예제 #1
0
 def test_same_hostname_path(self):
     self.assertEqual(
         "http://other:80/some",
         xenapi_inspector.swap_xapi_host(
             "http://some:80/some", 'other'))
예제 #2
0
 def test_no_path(self):
     self.assertEqual(
         "http://otherserver",
         xenapi_inspector.swap_xapi_host(
             "http://someserver", 'otherserver'))
예제 #3
0
 def test_swapping(self):
     self.assertEqual(
         "http://otherserver:8765/somepath",
         xenapi_inspector.swap_xapi_host(
             "http://someserver:8765/somepath", 'otherserver'))
예제 #4
0
 def test_same_hostname_path(self):
     self.assertEqual(
         "http://other:80/some",
         xenapi_inspector.swap_xapi_host(
             "http://some:80/some", 'other'))
예제 #5
0
 def test_no_path(self):
     self.assertEqual(
         "http://otherserver",
         xenapi_inspector.swap_xapi_host(
             "http://someserver", 'otherserver'))
예제 #6
0
 def test_swapping(self):
     self.assertEqual(
         "http://otherserver:8765/somepath",
         xenapi_inspector.swap_xapi_host(
             "http://someserver:8765/somepath", 'otherserver'))