mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 06:50:29 +01:00
Going deeper...
This commit is contained in:
parent
2160ce70a6
commit
6390b7fd9b
1 changed files with 13 additions and 13 deletions
|
@ -83,19 +83,19 @@ class InlineQueryResultVenueTest(BaseTest, unittest.TestCase):
|
|||
# self.input_message_content.to_dict())
|
||||
# self.assertDictEqual(venue.reply_markup.to_dict(),
|
||||
# self.reply_markup.to_dict())
|
||||
|
||||
def test_venue_to_json(self):
|
||||
venue = telegram.InlineQueryResultVenue.de_json(self.json_dict)
|
||||
|
||||
self.assertTrue(self.is_json(venue.to_json()))
|
||||
|
||||
def test_venue_to_dict(self):
|
||||
venue = \
|
||||
telegram.InlineQueryResultVenue.de_json(
|
||||
self.json_dict).to_dict()
|
||||
|
||||
self.assertTrue(self.is_dict(venue))
|
||||
self.assertDictEqual(self.json_dict, venue)
|
||||
#
|
||||
# def test_venue_to_json(self):
|
||||
# venue = telegram.InlineQueryResultVenue.de_json(self.json_dict)
|
||||
#
|
||||
# self.assertTrue(self.is_json(venue.to_json()))
|
||||
#
|
||||
# def test_venue_to_dict(self):
|
||||
# venue = \
|
||||
# telegram.InlineQueryResultVenue.de_json(
|
||||
# self.json_dict).to_dict()
|
||||
#
|
||||
# self.assertTrue(self.is_dict(venue))
|
||||
# self.assertDictEqual(self.json_dict, venue)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue