Beispiel #1
0
 def __init__(self,
              url_formatter=UrlFormatter(),
              url_splitter=UrlSplitter()):
     self.url_formatter = url_formatter
     self.url_splitter = url_splitter
Beispiel #2
0
 def setUp(self):
     url_validator = mock.create_autospec(UrlValidator).return_value
     self.url_formatter = UrlFormatter(url_validator)