From b2fd2ba69726906b3288c26bfa370bb0a0a5f7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 24 Apr 2016 19:00:21 +0200 Subject: [PATCH] add callback data --- tests/test_inlinekeyboardmarkup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_inlinekeyboardmarkup.py b/tests/test_inlinekeyboardmarkup.py index 3a4baf974..0813b3d19 100644 --- a/tests/test_inlinekeyboardmarkup.py +++ b/tests/test_inlinekeyboardmarkup.py @@ -33,8 +33,11 @@ class InlineKeyboardMarkupTest(BaseTest, unittest.TestCase): """This object represents Tests for Telegram KeyboardButton.""" def setUp(self): - self.inline_keyboard = [[telegram.InlineKeyboardButton(text='button1'), - telegram.InlineKeyboardButton(text='button2')]] + self.inline_keyboard = \ + [[telegram.InlineKeyboardButton(text='button1', + callback_data='data1'), + telegram.InlineKeyboardButton(text='button2', + callback_data='data2')]] self.json_dict = { 'inline_keyboard': [[self.inline_keyboard[0][0].to_dict(),