def test_must_not_override_permissions(self, os_patch): _override_permissions(path="./home", permission=None) os_patch.chmod.assert_not_called()
def test_must_not_override_permissions(self, os_patch): _override_permissions(path="./home", permission=None) os_patch.chmod.assert_not_called()
def test_must_override_permissions(self, os_patch): _override_permissions(path="./home", permission=0o700) os_patch.chmod.assert_called_once_with("./home", 0o700)
def test_must_override_permissions(self, os_patch): _override_permissions(path="./home", permission=0o700) os_patch.chmod.assert_called_once_with("./home", 0o700)