Beispiel #1
0
 def test_message(self):
     assert (str(InvalidURL("https://www.google.com")) ==
             "Invalid URL: https://www.google.com")
Beispiel #2
0
 def test_custom_message(self):
     assert (str(
         InvalidURL("https://www.google.com", message="Test custom {}")) ==
             "Test custom https://www.google.com")
Beispiel #3
0
 def test_inheritance(self):
     assert isinstance(InvalidURL(None), ClientException)