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