def setUp(self): self.html = test_data('hn.html') self.hn = hackernews.HackerNews({'interval': None})
def setUp(self): self.html = test_data("hn.html") self.hn = hackernews.HackerNews({"interval": None})
def setUp(self): html_path = os.path.abspath( os.path.join(os.path.dirname(__file__), 'test_data', 'hn.html')) with open(html_path, 'r') as f: self.html = f.read() self.hn = hackernews.HackerNews({'interval': None})