コード例 #1
0
 def setUp(self):
     super(TestBase, self).setUp()
     self.scraper = scrape.Scrape()
コード例 #2
0
 def test_reset_cache(self):
     scraper = scrape.Scrape('group')
     scraper.reset_cache()
     self.assertEquals(scraper.cached, {})
コード例 #3
0
 def test_instantiation_with_commands(self):
     scraper = scrape.Scrape(['ls', 'group'])
     self.assertEquals(sorted(scraper.stored_commands), sorted(['ls', 'group']))
コード例 #4
0
 def test_instantiation_with_command_and_run(self):
     scraper = scrape.Scrape('ls')
     scraper.run()
     self.assertEquals(scraper.stored_commands, ['ls'])
コード例 #5
0
 def test_instantiation(self):
     scrape.Scrape()