示例#1
0
 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)
示例#2
0
 def test_match_one(self):
     x = RefreshLog.url_path_mappings('^spam$')
     self.assertEqual(1, len(x))
示例#3
0
 def test_match_none(self):
     x = RefreshLog.url_path_mappings('ham')
     self.assertEqual(0, len(x))
示例#4
0
 def test_match_two(self):
     x = RefreshLog.url_path_mappings('spam')
     self.assertEqual(2, len(x))