示例#1
0
    def test_version_less(self):
        result = compactor.version_greater('1.2', '1.1.90')

        self.assertEqual(result, False)
示例#2
0
    def test_version_greater_major(self):
        result = compactor.version_greater('1.2', '1.3.1')

        self.assertEqual(result, True)
示例#3
0
    def test_version_equal(self):
        result = compactor.version_greater('1.2.3', '1.2.3')

        self.assertEqual(result, True)
示例#4
0
    def test_version_less(self):
        result = compactor.version_greater('1.2', '1.1.90')

        self.assertEqual(result, False)
示例#5
0
    def test_version_greater_major(self):
        result = compactor.version_greater('1.2', '1.3.1')

        self.assertEqual(result, True)
示例#6
0
    def test_version_equal(self):
        result = compactor.version_greater('1.2.3', '1.2.3')

        self.assertEqual(result, True)