Esempio n. 1
0
 def test_multipleLevelMountPointExtraPathInfo(self):
     url = '/other/mount/point/fsm/MyMachine/state1/to/state2'
     request = buildRequest(path=url)
     from fantasm import config
     mock('config.currentConfiguration', returns=MockConfigRootUrl('/other/mount/point/'), tracker=None)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
Esempio n. 2
0
 def test_graphvizMapping(self):
     url = '/fantasm/graphviz/MyMachine/'
     request = buildRequest(path=url)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
Esempio n. 3
0
 def test_defaultMountPointExtraPathInfo(self):
     url = '/fantasm/fsm/MyMachine/state1/to/state2/'
     request = buildRequest(path=url)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')