예제 #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')
예제 #2
0
 def test_multipleLevelMountPointExtraPathInfo(self):
     url = '/other/mount/point/fsm/MyMachine/state1/to/state2'
     request = buildRequest(path=url)
     mock('config.currentConfiguration',
          returns=MockConfigRootUrl('/other/mount/point/'),
          tracker=None)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
예제 #3
0
 def test_singleLevelMountPointNoExtraPathInfo(self):
     url = '/o/fsm/MyMachine/'
     request = buildRequest(path=url)
     mock('config.currentConfiguration',
          returns=MockConfigRootUrl('/o/'),
          tracker=None)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
예제 #4
0
 def test_singleLevelMountPointExtraPathInfo(self):
     url = '/o/fsm/MyMachine/state1/to/state2'
     request = buildRequest(path=url)
     mock('config.currentConfiguration', returns=MockConfigRootUrl('/o/'), tracker=None)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
예제 #5
0
 def test_graphvizMapping(self):
     url = '/fantasm/graphviz/MyMachine/'
     request = buildRequest(path=url)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
예제 #6
0
 def test_defaultMountPointExtraPathInfo(self):
     url = '/fantasm/fsm/MyMachine/state1/to/state2/'
     request = buildRequest(path=url)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
예제 #7
0
 def test_graphvizMapping(self):
     url = '/fantasm/graphviz/MyMachine/'
     request = buildRequest(path=url)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')
예제 #8
0
 def test_defaultMountPointExtraPathInfo(self):
     url = '/fantasm/fsm/MyMachine/state1/to/state2/'
     request = buildRequest(path=url)
     name = getMachineNameFromRequest(request)
     self.assertEquals(name, 'MyMachine')