/usr/lib/python3/dist-packages/provisioningserver/boot/testing.py is in python3-maas-provisioningserver 2.0.0~beta3+bzr4941-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Copyright 2015 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Testing helpers for `provisioningserver.boot`."""
__all__ = [
"TFTPPath",
"TFTPPathAndComponents",
"TFTPPathComponents",
]
from typing import (
Dict,
Optional,
Tuple,
)
from provisioningserver.utils.tftp import TFTPPath
# Components of the TFTP path, perhaps obtained from a regex match.
TFTPPathComponents = Dict[str, Optional[bytes]]
# Type hint for get_example_path_and_components() functions.
TFTPPathAndComponents = Tuple[TFTPPath, TFTPPathComponents]
|