def test_path_multiple_args(): instance = PrefixedCommandRunner('foo') ret = instance.path('bar', 'baz') assert ret == os.path.join('foo', 'bar', 'baz')
def test_path(prefix, path_end, expected_output): instance = PrefixedCommandRunner(prefix) ret = instance.path(path_end) assert ret == expected_output