Trying to isolate the problem.

This commit is contained in:
Leandro Toledo 2016-04-23 22:40:52 -03:00
parent fe06708d34
commit 4775107af0

View file

@ -84,18 +84,17 @@ class InlineQueryResultVenueTest(BaseTest, unittest.TestCase):
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()
# def test_venue_to_json(self):
# venue = telegram.InlineQueryResultVenue.de_json(self.json_dict)
#
# self.assertTrue(self.is_dict(venue))
# self.assertDictEqual(self.json_dict, venue)
# 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__':