mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
address to _address due nose limitations
This commit is contained in:
parent
1d33c39a1b
commit
ed7ecddb8d
1 changed files with 3 additions and 3 deletions
|
@ -37,13 +37,13 @@ class VenueTest(BaseTest, unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.location = telegram.Location(longitude=1., latitude=0.)
|
self.location = telegram.Location(longitude=1., latitude=0.)
|
||||||
self.title = 'title'
|
self.title = 'title'
|
||||||
self.address = 'address'
|
self._address = '_address'
|
||||||
self.foursquare_id = 'foursquare id'
|
self.foursquare_id = 'foursquare id'
|
||||||
|
|
||||||
self.json_dict = {
|
self.json_dict = {
|
||||||
'location': self.location.to_dict(),
|
'location': self.location.to_dict(),
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
'address': self.address,
|
'address': self._address,
|
||||||
'foursquare_id': self.foursquare_id
|
'foursquare_id': self.foursquare_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class VenueTest(BaseTest, unittest.TestCase):
|
||||||
|
|
||||||
self.assertTrue(isinstance(sticker.location, telegram.Location))
|
self.assertTrue(isinstance(sticker.location, telegram.Location))
|
||||||
self.assertEqual(sticker.title, self.title)
|
self.assertEqual(sticker.title, self.title)
|
||||||
self.assertEqual(sticker.address, self.address)
|
self.assertEqual(sticker.address, self._address)
|
||||||
self.assertEqual(sticker.foursquare_id, self.foursquare_id)
|
self.assertEqual(sticker.foursquare_id, self.foursquare_id)
|
||||||
|
|
||||||
def test_sticker_to_json(self):
|
def test_sticker_to_json(self):
|
||||||
|
|
Loading…
Reference in a new issue