def test04_explore(self):
     e = Explorer()
     e.sitemap_name = 'tests/testdata/explore1/caps1.xml'
     with capture_stdout() as capturer:
         # IOError generated from attempt to read stdin
         e.fake_input = 'q'
         e.explore()
     self.assertTrue(re.search(r'resync-explorer done', capturer.result))
Exemple #2
0
 def test04_explore(self):
     e = Explorer()
     e.sitemap_name = 'tests/testdata/explore1/caps1.xml'
     with capture_stdout() as capturer:
         # IOError generated from attempt to read stdin
         e.fake_input = 'q'
         e.explore()
     self.assertTrue(re.search(r'resync-explorer done', capturer.result))
Exemple #3
0
 def test05_explore_uri(self):
     e = Explorer()
     with capture_stdout() as capturer:
         e.fake_input = 'q'
         self.assertRaises(ExplorerQuit, e.explore_uri,
                           XResource('tests/testdata/explore1/caps1.xml'))
     self.assertTrue(re.search(r'Reading tests/testdata/explore1/caps1.xml',
                               capturer.result))
     self.assertTrue(re.search(r'Parsed capabilitylist document with 4 entries:',
                               capturer.result))