def print_url_path_mappings(self, outfile) -> None: r: RefreshLog for r in RefreshLog.url_path_mappings(self.args.provider): print(f'{r.provider}\t{r.url}\t{r.path}', file=outfile)
def test_match_one(self): x = RefreshLog.url_path_mappings('^spam$') self.assertEqual(1, len(x))
def test_match_none(self): x = RefreshLog.url_path_mappings('ham') self.assertEqual(0, len(x))
def test_match_two(self): x = RefreshLog.url_path_mappings('spam') self.assertEqual(2, len(x))