def test_version_check(self): from gaphor.storage.storage import version_lower_than assert version_lower_than("0.3.0", (0, 15, 0)) assert version_lower_than("0", (0, 15, 0)) assert version_lower_than("0.14", (0, 15, 0)) assert version_lower_than("0.14.1111", (0, 15, 0)) assert not version_lower_than("0.15.0", (0, 15, 0)) assert not version_lower_than("1.33.0", (0, 15, 0)) assert version_lower_than("0.15.0.b123", (0, 15, 0)) assert version_lower_than("0.14.0.b1", (0, 15, 0)) assert version_lower_than("0.15.b1", (0, 15, 0)) assert not version_lower_than("0.16.b1", (0, 15, 0)) assert not version_lower_than("0.15.0.b2", (0, 14, 99))
def test_version_check(self): from gaphor.storage.storage import version_lower_than self.assertTrue(version_lower_than('0.3.0', (0, 15, 0))) self.assertTrue(version_lower_than('0', (0, 15, 0))) self.assertTrue(version_lower_than('0.14', (0, 15, 0))) self.assertTrue(version_lower_than('0.14.1111', (0, 15, 0))) self.assertFalse(version_lower_than('0.15.0', (0, 15, 0))) self.assertFalse(version_lower_than('1.33.0', (0, 15, 0))) self.assertTrue(version_lower_than('0.15.0.b123', (0, 15, 0))) self.assertTrue(version_lower_than('0.14.0.b1', (0, 15, 0))) self.assertTrue(version_lower_than('0.15.b1', (0, 15, 0))) self.assertFalse(version_lower_than('0.16.b1', (0, 15, 0))) self.assertFalse(version_lower_than('0.15.0.b2', (0, 14, 99)))
def test_version_check(self): from gaphor.storage.storage import version_lower_than self.assertTrue(version_lower_than("0.3.0", (0, 15, 0))) self.assertTrue(version_lower_than("0", (0, 15, 0))) self.assertTrue(version_lower_than("0.14", (0, 15, 0))) self.assertTrue(version_lower_than("0.14.1111", (0, 15, 0))) self.assertFalse(version_lower_than("0.15.0", (0, 15, 0))) self.assertFalse(version_lower_than("1.33.0", (0, 15, 0))) self.assertTrue(version_lower_than("0.15.0.b123", (0, 15, 0))) self.assertTrue(version_lower_than("0.14.0.b1", (0, 15, 0))) self.assertTrue(version_lower_than("0.15.b1", (0, 15, 0))) self.assertFalse(version_lower_than("0.16.b1", (0, 15, 0))) self.assertFalse(version_lower_than("0.15.0.b2", (0, 14, 99)))