summaryrefslogtreecommitdiff
path: root/testenv/tests/validators/test_kvm.py
diff options
context:
space:
mode:
Diffstat (limited to 'testenv/tests/validators/test_kvm.py')
-rw-r--r--testenv/tests/validators/test_kvm.py23
1 files changed, 8 insertions, 15 deletions
diff --git a/testenv/tests/validators/test_kvm.py b/testenv/tests/validators/test_kvm.py
index f9990194..c3c2eea9 100644
--- a/testenv/tests/validators/test_kvm.py
+++ b/testenv/tests/validators/test_kvm.py
@@ -72,20 +72,12 @@ def test_fail__valid_atx_button(arg: Any) -> None:
("\n" + "x" * 1000, "x" * 255),
("test", "test"),
("test test [test] #test$", "test test [test] #test$"),
- (".test", ".test"),
- ("..test", "..test"),
- ("..тест..", "..тест.."),
- ("..те\\ст..", "..те\\ст.."),
- (".....", "....."),
- (".....txt", ".....txt"),
- (" .. .", ".. ."),
- ("..\n.", ".._."),
- ("test/", "test"),
- ("/test", "test"),
- ("foo/bar.iso", "foo/bar.iso"),
- ("//foo//bar.iso", "foo/bar.iso"),
- ("foo/lost-found/bar.iso", "foo/lost-found/bar.iso"),
- ("/bar.iso/", "bar.iso"),
+ ("test/", "test"),
+ ("/test", "test"),
+ ("foo/bar.iso", "foo/bar.iso"),
+ ("//foo//bar.iso", "foo/bar.iso"),
+ ("foo/lost-found/bar.iso", "foo/lost-found/bar.iso"),
+ ("/bar.iso/", "bar.iso"),
])
def test_ok__valid_msd_image_name(arg: Any, retval: str) -> None:
@@ -104,12 +96,13 @@ def test_ok__valid_msd_image_name(arg: Any, retval: str) -> None:
"/ ..",
".. /",
"/.. /",
+ ".test",
"foo/../bar.iso",
"foo/./foo.iso",
"foo/lost+found/bar.iso",
"../bar.iso",
"/../bar.iso",
- "foo/.__bar.iso",
+ "foo/.bar.iso",
"",
" ",
None,