pyCraft/tests/test_version.py

14 lines
387 B
Python
Raw Permalink Normal View History

2015-04-01 17:40:40 +02:00
from distutils.version import StrictVersion as SV
import unittest
import minecraft
class VersionTest(unittest.TestCase):
def test_module_version_is_a_valid_pep_386_strict_version(self):
SV(minecraft.__version__)
def test_protocol_version_is_an_int(self):
2016-06-17 23:54:21 +02:00
for version in minecraft.SUPPORTED_PROTOCOL_VERSIONS:
self.assertTrue(type(version) is int)