Esempio n. 1
0
    def test_version_less(self):
        result = compactor.version_greater('1.2', '1.1.90')

        self.assertEqual(result, False)
Esempio n. 2
0
    def test_version_greater_major(self):
        result = compactor.version_greater('1.2', '1.3.1')

        self.assertEqual(result, True)
Esempio n. 3
0
    def test_version_equal(self):
        result = compactor.version_greater('1.2.3', '1.2.3')

        self.assertEqual(result, True)
Esempio n. 4
0
    def test_version_less(self):
        result = compactor.version_greater('1.2', '1.1.90')

        self.assertEqual(result, False)
Esempio n. 5
0
    def test_version_greater_major(self):
        result = compactor.version_greater('1.2', '1.3.1')

        self.assertEqual(result, True)
Esempio n. 6
0
    def test_version_equal(self):
        result = compactor.version_greater('1.2.3', '1.2.3')

        self.assertEqual(result, True)