def test_get_abs_path(self): path = Server._get_abs_path(exe='gvim') self.assertEqual(path, find_executable('gvim'))
def test_get_abs_path(self): path = Server._get_abs_path(exe='gvim') gvim_path = subprocess.check_output(['which', 'gvim']) gvim_path = gvim_path.decode('utf-8').strip('\n') self.assertEqual(path, gvim_path)