MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / test__version__IsValid

Method test__version__IsValid

tests/test_meta.py:16–24  ·  view source on GitHub ↗

Test that __version__ is valid and normalized.

(self)

Source from the content-addressed store, hash-verified

14 self.assertEqual(_get_version((1, 2, 0, 'final', 0)), "1.2")
15
16 def test__version__IsValid(self):
17 """Test that __version__ is valid and normalized."""
18
19 try:
20 import packaging.version
21 except ImportError:
22 self.skipTest('packaging does not appear to be installed')
23
24 self.assertEqual(__version__, str(packaging.version.Version(__version__)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected