def test_compare_version(self): assert compare_version("2.1.1", "2.2.0") == -1 assert compare_version("2.2.0", "1.6.2") == 1 assert compare_version("2.2.0", "2.2.0") == 0 assert compare_version("1.6.0", "2.1.0") == -1 assert compare_version("2.1.0", "2.1.1") == -1 assert compare_version("2.0.1", "1.5.2") == 1