Beispiel #1
0
 def test_FontSize(self, detail):
     p = FontSize()
     with pytest.raises(ValueError) as e:
         p.validate("junk", detail)
     assert str(e).endswith("ValueError") == (not detail)
Beispiel #2
0
 def test_FontSize(self):
     p = FontSize()
     with pytest.raises(ValueError) as e:
         p.validate("junk")
     assert not str(e).endswith("ValueError")
 def test_FontSize(self, detail) -> None:
     p = FontSize()
     with pytest.raises(ValueError) as e:
         p.validate("junk", detail)
     assert (str(e.value) == "") == (not detail)
 def test_FontSize(self) -> None:
     p = FontSize()
     with pytest.raises(ValueError) as e:
         p.validate("junk")
     assert matches(str(e.value), r"'junk' is not a valid font size value")
Beispiel #5
0
 def test_FontSize(self, detail):
     p = FontSize()
     with pytest.raises(ValueError) as e:
         p.validate("junk", detail)
     assert str(e).endswith("ValueError") == (not detail)
Beispiel #6
0
 def test_FontSize(self):
     p = FontSize()
     with pytest.raises(ValueError) as e:
         p.validate("junk")
     assert not str(e).endswith("ValueError")