def test_compare__gt(self):
     limit_value = 300, 200
     instance = validators.MaxSizeValidator(*limit_value)
     assert instance.compare((600, 400), limit_value)
     assert instance.compare((600, 200), limit_value)
     assert instance.compare((300, 400), limit_value)
     assert instance.compare((600, 100), limit_value)
     assert instance.compare((150, 400), limit_value)
 def test_compare__eq(self):
     assert not validators.MaxSizeValidator(300, 200).compare((300, 200),
                                                              (300, 200))
 def test_compare__inf(self):
     limit_value = float("inf"), float("inf")
     instance = validators.MaxSizeValidator(*limit_value)
     assert not instance.compare((300, 200), limit_value)