Beispiel #1
0
 def fetcher(self, file_cache: NoCache) -> PiggybackFetcher:
     return PiggybackFetcher(
         file_cache,
         hostname=HostName("host"),
         address=HostAddress("1.2.3.4"),
         time_settings=[],
     )
Beispiel #2
0
 def fetcher(self, file_cache):
     return PiggybackFetcher(
         file_cache,
         hostname="host",
         address="1.2.3.4",
         time_settings=[],
     )
Beispiel #3
0
 def test_fetcher_deserialization(self, fetcher: PiggybackFetcher) -> None:
     other = type(fetcher).from_json(json_identity(fetcher.to_json()))
     assert isinstance(other, type(fetcher))
     assert other.hostname == fetcher.hostname
     assert other.address == fetcher.address
     assert other.time_settings == fetcher.time_settings