From 4775107af0c188ac6cb66ddef21b8445360cd798 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Sat, 23 Apr 2016 22:40:52 -0300 Subject: [PATCH] Trying to isolate the problem. --- tests/test_inlinequeryresultvenue.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/test_inlinequeryresultvenue.py b/tests/test_inlinequeryresultvenue.py index c89a32e67..4a871cfe6 100644 --- a/tests/test_inlinequeryresultvenue.py +++ b/tests/test_inlinequeryresultvenue.py @@ -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__':