# coding: utf-8
import pkg_resources

import deprecated


def test_deprecated_has_docstring():
    # The deprecated package must have a docstring
    assert deprecated.__doc__ is not None
    assert "Deprecated Library" in deprecated.__doc__


def test_deprecated_has_version():
    # The deprecated package must have a valid version number
    assert deprecated.__version__ is not None
    version = pkg_resources.parse_version(deprecated.__version__)
    assert not isinstance(version, pkg_resources.SetuptoolsLegacyVersion)

Add a unit test to check the Deprecated Library metadata: docstring and version.