def test_regex_only_any_path_linux_3_matches(self): test_utils.set_linux() files = file_download_feature.find_matching_files('##any_path#', 'found files: ' '/home/username/text.txt, ' '/tmp/data.dat, ' '/opt/software/script\ server/read_me.md') self.assertEqual(files, ['/home/username/text.txt', '/tmp/data.dat', '/opt/software/script\ server/read_me.md'])
def test_init_when_linux(self): test_utils.set_linux() try: self.start_server(12345, '127.0.0.1') if self.requires_explicit_ioloop_factory: self.fail( 'Server should NOT be startable on current environment') else: self.check_server_running() except NotImplementedError as e: if self.requires_explicit_ioloop_factory and is_unsupported_ioloop_exception( e): return raise
def test_complex_command_linux(self): test_utils.set_linux() command_split = process_utils.split_command('/usr/bin/python test.py') self.assertEqual(command_split, ['/usr/bin/python', 'test.py'])