def METHOD_NAME(self):
    for path in self.INVALID_PATHS_IN_REPO:
        with self.subTest(msg=f"Add: '{path}'"):
            with self.assertRaises(ValueError):
                CommitOperationAdd(path_in_repo=path, path_or_fileobj=b"content")
        with self.subTest(msg=f"Delete: '{path}'"):
            with self.assertRaises(ValueError):
                CommitOperationDelete(path_in_repo=path)