コード例 #1
0
    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))
コード例 #2
0
ファイル: test_storage.py プロジェクト: gitter-badger/dabbler
 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)))
コード例 #3
0
ファイル: test_storage.py プロジェクト: dieterv/gaphor
 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)))
コード例 #4
0
ファイル: test_storage.py プロジェクト: amolenaar/gaphor
    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)))