Ver código fonte

extend test with remote host+useragent

Peter Bieringer 3 meses atrás
pai
commit
91cee5e514
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      radicale/tests/test_base.py

+ 2 - 2
radicale/tests/test_base.py

@@ -1848,12 +1848,12 @@ permissions: RrWw""")
         assert not sync_token
 
     def test_report_sync_collection_invalid_sync_token_with_user(self) -> None:
-        """Test sync-collection report with an invalid sync token and user"""
+        """Test sync-collection report with an invalid sync token and user+host+useragent"""
         self.configure({"auth": {"type": "none"}})
         calendar_path = "/calendar.ics/"
         self.mkcalendar(calendar_path)
         sync_token, _ = self._report_sync_token(
-            calendar_path, "http://radicale.org/ns/sync/INVALID", login="testuser:")
+            calendar_path, "http://radicale.org/ns/sync/INVALID", login="testuser:", remote_host = "192.0.2.1", remote_useragent = "Testclient/1.0")
         assert not sync_token
 
     def test_propfind_sync_token(self) -> None: