Going deeper...

This commit is contained in:
Leandro Toledo 2016-04-23 21:43:27 -03:00
parent 2160ce70a6
commit 6390b7fd9b

View file

@ -83,19 +83,19 @@ class InlineQueryResultVenueTest(BaseTest, unittest.TestCase):
# self.input_message_content.to_dict()) # self.input_message_content.to_dict())
# self.assertDictEqual(venue.reply_markup.to_dict(), # self.assertDictEqual(venue.reply_markup.to_dict(),
# self.reply_markup.to_dict()) # self.reply_markup.to_dict())
#
def test_venue_to_json(self): # def test_venue_to_json(self):
venue = telegram.InlineQueryResultVenue.de_json(self.json_dict) # venue = telegram.InlineQueryResultVenue.de_json(self.json_dict)
#
self.assertTrue(self.is_json(venue.to_json())) # self.assertTrue(self.is_json(venue.to_json()))
#
def test_venue_to_dict(self): # def test_venue_to_dict(self):
venue = \ # venue = \
telegram.InlineQueryResultVenue.de_json( # telegram.InlineQueryResultVenue.de_json(
self.json_dict).to_dict() # self.json_dict).to_dict()
#
self.assertTrue(self.is_dict(venue)) # self.assertTrue(self.is_dict(venue))
self.assertDictEqual(self.json_dict, venue) # self.assertDictEqual(self.json_dict, venue)
if __name__ == '__main__': if __name__ == '__main__':