示例#1
0
 def test_config_creation(self):
     from src import CONFIG_FILE
     self.assertFalse(os.path.exists(CONFIG_FILE))
     app.create_node_config('test', 'android', '127.0.0.1', 4723,
                            '127.0.0.1', 4444)
     self.assertTrue(os.path.exists(CONFIG_FILE))
     os.remove(CONFIG_FILE)
示例#2
0
 def test_config_contains_device_id(self):
     from src import CONFIG_FILE
     self.assertFalse(os.path.exists(CONFIG_FILE))
     device_id = 'UniqueDeviceId_{random_id}'.format(random_id=uuid.uuid4())
     app.create_node_config('test', 'android', '127.0.0.1', 4723, '127.0.0.1', 4444, '%s' % device_id)
     self.assertTrue(os.path.exists(CONFIG_FILE))
     self.assertTrue(device_id in open(os.path.exists(CONFIG_FILE)).read())
     os.remove(CONFIG_FILE)
示例#3
0
 def test_config_creation(self):
     from src import CONFIG_FILE
     self.assertFalse(os.path.exists(CONFIG_FILE))
     app.create_node_config(
         'test', 'android', '127.0.0.1', 4723, '127.0.0.1', 4444, 30,
         'org.openqa.grid.selenium.proxy.DefaultRemoteProxy')
     self.assertTrue(os.path.exists(CONFIG_FILE))
     os.remove(CONFIG_FILE)
示例#4
0
 def test_config_creation(self):
     from src import CONFIG_FILE
     self.assertFalse(os.path.exists(CONFIG_FILE))
     app.create_node_config('test', 'android', '127.0.0.1', 4723, '127.0.0.1', 4444)
     self.assertTrue(os.path.exists(CONFIG_FILE))
     os.remove(CONFIG_FILE)