mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-12-23 00:57:47 +01:00
14 lines
387 B
Python
14 lines
387 B
Python
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):
|
|
for version in minecraft.SUPPORTED_PROTOCOL_VERSIONS:
|
|
self.assertTrue(type(version) is int)
|