Example #1
0
def test_unique_name_counter(path_exists):
    path_exists.side_effect = [True, False]
    assert (cli._unique_name("base", "subtype", "video",
                             "target") == "base_video_1")
Example #2
0
def test_unique_name(path_exists):
    assert (cli._unique_name("base", "subtype", "video",
                             "target") == "base_video_0")