mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-10 20:41:22 +01:00
Added the first test, yay
This commit is contained in:
parent
256eda11e1
commit
4a38e6fe3d
15
tests/test_version.py
Normal file
15
tests/test_version.py
Normal file
@ -0,0 +1,15 @@
|
||||
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_minecraft_version_is_a_valid_pep_386_strict_version(self):
|
||||
SV(minecraft.MINECRAFT_VERSION)
|
||||
|
||||
def test_protocol_version_is_an_int(self):
|
||||
self.assertTrue(type(minecraft.PROTOCOL_VERSION) is int)
|
Loading…
Reference in New Issue
Block a user