| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/pythonthings/validators/master/tests/test_extremes.py | [Back] [Original] |
# -*- coding: utf-8 -*-
import pytest
from validators import Max, Min
@pytest.mark.parametrize(('value',), [
(None,),
('',),
(12,),
(Min,),
])
def test_max_is_greater_than_every_other_value(value):
assert value < Max
assert Max > value
def test_max_is_not_greater_than_itself():
assert not (Max < Max)
def test_other_comparison_methods_for_max():
assert Max Min
def test_min_is_not_greater_than_itself():
assert not (Min < Min)
def test_other_comparison_methods_for_min():
assert Min
| Web Proxy Viewer | New URL | Original Page |