Преглед изворни кода

add missing test for auth/lc_username

Peter Bieringer пре 1 година
родитељ
комит
f117fd06af
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      radicale/tests/test_auth.py

+ 5 - 0
radicale/tests/test_auth.py

@@ -115,6 +115,11 @@ class TestBaseAuthRequests(BaseTest):
     def test_htpasswd_comment(self) -> None:
         self._test_htpasswd("plain", "#comment\n #comment\n \ntmp:bepo\n\n")
 
+    def test_htpasswd_lc_username(self) -> None:
+        self.configure({"auth": {"lc_username": "True"}})
+        self._test_htpasswd("plain", "tmp:bepo", (
+            ("tmp", "bepo", True), ("TMP", "bepo", True), ("tmp1", "bepo", False)))
+
     def test_remote_user(self) -> None:
         self.configure({"auth": {"type": "remote_user"}})
         _, responses = self.propfind("/", """\