Example #1
0
 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)",
     })
Example #2
0
 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)'
     })
Example #3
0
 def setUp(self):
     self.html = test_data('nsb.html')
     self.nsb = nsb.Nsb({
         'interval': None,
         'from': 'Skansen',
         'to': 'V\xc3\xa6rnes (Trondheim Lufthavn)'
     })
Example #4
0
    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)'
        })
Example #5
0
    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'
        })