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