Esempio n. 1
0
 def setUp(self):
     self.patcher, self.mock_urlopen = helpers.patch_urlopen()
     self.responce = self.client.get('/2011h/punkt/580')
Esempio n. 2
0
 def setUp(self):
     self.allegro = models.Point(number=580, name=u'Allegrogrund',
                                 definition=u'Mellan två platser',
                                 lat=59.5, lon=18.25, startpoint=True)
     self.allegro.save()
     self.patcher, self.mock_urlopen = helpers.patch_urlopen()