2022-02-15 20:36:58 +00:00
|
|
|
# Copyright 2009-2022 Joshua Bronson. All rights reserved.
|
2017-11-21 03:27:26 +00:00
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-11-21 15:35:51 +00:00
|
|
|
"""Test bidict metadata."""
|
2017-11-21 03:27:26 +00:00
|
|
|
|
2022-12-29 21:55:26 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2017-11-21 03:27:26 +00:00
|
|
|
import bidict
|
|
|
|
|
|
|
|
|
2018-02-25 23:44:21 +00:00
|
|
|
METADATA_ATTRS = """
|
|
|
|
__author__
|
|
|
|
__copyright__
|
|
|
|
__description__
|
|
|
|
__license__
|
2018-04-19 08:22:07 +00:00
|
|
|
__url__
|
2018-02-25 23:44:21 +00:00
|
|
|
__version__
|
|
|
|
""".split()
|
2017-11-21 03:27:26 +00:00
|
|
|
|
|
|
|
|
2022-12-29 21:55:26 +00:00
|
|
|
def test_metadata() -> None:
|
2017-11-21 03:27:26 +00:00
|
|
|
"""Ensure bidict has expected metadata attributes."""
|
2018-02-25 23:44:21 +00:00
|
|
|
for i in METADATA_ATTRS:
|
2017-11-21 03:27:26 +00:00
|
|
|
assert getattr(bidict, i)
|