Lines Matching refs:compare_versions
858 self.assertEqual(utils.compare_versions('1.7', '1.10'), -1)
859 self.assertEqual(utils.compare_versions('1.222', '1.3'), 1)
860 self.assertEqual(utils.compare_versions('1.03', '1.3'), 0)
864 self.assertEqual(utils.compare_versions('1.3', '1.3.4'), -1)
865 self.assertEqual(utils.compare_versions('1.3.1', '1.3'), 1)
869 self.assertEqual(utils.compare_versions('1-2-3', '1-5-1'), -1)
870 self.assertEqual(utils.compare_versions('1-2-1', '1-1-1'), 1)
871 self.assertEqual(utils.compare_versions('1-2-4', '1-2-4'), 0)
875 self.assertEqual(utils.compare_versions('m.l.b', 'n.b.a'), -1)
876 self.assertEqual(utils.compare_versions('n.b.a', 'm.l.b'), 1)
877 self.assertEqual(utils.compare_versions('abc.e', 'abc.e'), 0)
881 self.assertEqual(utils.compare_versions('k-320.1', 'k-320.3'), -1)
882 self.assertEqual(utils.compare_versions('k-231.5', 'k-231.1'), 1)
883 self.assertEqual(utils.compare_versions('k-231.1', 'k-231.1'), 0)
885 self.assertEqual(utils.compare_versions('k.320-1', 'k.320-3'), -1)
886 self.assertEqual(utils.compare_versions('k.231-5', 'k.231-1'), 1)
887 self.assertEqual(utils.compare_versions('k.231-1', 'k.231-1'), 0)