def setUp(self): self.json = test_data("nsb.json", parse_json=True) self.nsb = nsb.Nsb({ "interval": None, "from": "Skansen", "to": "V\xc3\xa6rnes (Trondheim Lufthavn)", })
def setUp(self): self.json = test_data('nsb.json', parse_json=True) self.nsb = nsb.Nsb({ 'interval': None, 'from': 'Skansen', 'to': 'V\xc3\xa6rnes (Trondheim Lufthavn)' })
def setUp(self): self.html = test_data('nsb.html') self.nsb = nsb.Nsb({ 'interval': None, 'from': 'Skansen', 'to': 'V\xc3\xa6rnes (Trondheim Lufthavn)' })
def setUp(self): test_data = os.path.abspath( os.path.join(os.path.dirname(__file__), 'test_data')) with open(os.path.join(test_data, 'nsb.html')) as f: self.html = f.read() self.nsb = nsb.Nsb({ 'interval': None, 'from': 'Skansen', 'to': 'V\xc3\xa6rnes (Trondheim Lufthavn)' })
def setUp(self): test_data = os.path.abspath( os.path.join(os.path.dirname(__file__), 'test_data')) with open(os.path.join(test_data, 'nsb.html')) as f: self.html = f.read() self.nsb = nsb.Nsb({ 'interval': None, 'from': 'Lerkendal', 'to': 'Rotvoll' })