def test_builddate(): bd = nodesTk.Version("0.14f-20170411").builddate assert "2017-04-11" == str(bd) assert datetime.date == type(bd)
def test_build(): assert "f" == nodesTk.Version("0.14f-20170411").build
def test_minor(): assert "14" == nodesTk.Version("0.14f-20170411").minor
def test_major(): assert "0" == nodesTk.Version("0.14f-20170411").major
def test_version_string(): version_str = "0.14f-20170411" assert version_str == nodesTk.Version(version_str).version_string
def test_version_init(): assert hasattr(nodesTk.Version, '__init__') and nodesTk.Version("0.14f-20170411")