fix webdav tests and then add some (#6189)

This commit is contained in:
Saugat Pachhai
2021-06-17 13:10:53 +03:00
committed by GitHub
parent 3e93bc286f
commit adeb9ef63e
4 changed files with 97 additions and 13 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
from typing import Any
from typing import Any, Dict
from unittest.mock import ANY, Mock
def issubset(subset: Dict, superset: Dict) -> bool:
assert {**superset, **subset} == superset
return True
def called_once_with_subset(m: Mock, *args: Any, **kwargs: Any) -> bool:
m.assert_called_once()
m_args, m_kwargs = m.call_args