Пример #1
0
 def test_builddate():
     bd = nodesTk.Version("0.14f-20170411").builddate
     assert "2017-04-11" == str(bd)
     assert datetime.date == type(bd)
Пример #2
0
 def test_build():
     assert "f" == nodesTk.Version("0.14f-20170411").build
Пример #3
0
 def test_minor():
     assert "14" == nodesTk.Version("0.14f-20170411").minor
Пример #4
0
 def test_major():
     assert "0" == nodesTk.Version("0.14f-20170411").major
Пример #5
0
 def test_version_string():
     version_str = "0.14f-20170411"
     assert version_str == nodesTk.Version(version_str).version_string
Пример #6
0
 def test_version_init():
     assert hasattr(nodesTk.Version,
                    '__init__') and nodesTk.Version("0.14f-20170411")