2017-11-21 03:27:26 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2021-01-01 17:14:24 +00:00
|
|
|
# Copyright 2009-2021 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
|
|
|
|
|
|
|
import bidict
|
|
|
|
|
|
|
|
|
2018-02-25 23:44:21 +00:00
|
|
|
METADATA_ATTRS = """
|
|
|
|
__author__
|
|
|
|
__maintainer__
|
|
|
|
__copyright__
|
|
|
|
__email__
|
|
|
|
__credits__
|
|
|
|
__description__
|
2018-04-19 08:22:07 +00:00
|
|
|
__keywords__
|
2018-02-25 23:44:21 +00:00
|
|
|
__license__
|
|
|
|
__status__
|
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
|
|
|
|
|
|
|
|
|
|
|
def test_metadata():
|
|
|
|
"""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)
|