mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
Formatting
This commit is contained in:
parent
4a4dbcdbf8
commit
a79f636345
2 changed files with 5 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# A library that provides a Python interface to the Telegram Bot API
|
||||
# Copyright (C) 2015-2016
|
||||
|
@ -16,7 +16,6 @@
|
|||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
||||
|
||||
"""
|
||||
This module contains a object that represents Tests for MessageHandler.Filters
|
||||
"""
|
||||
|
@ -152,5 +151,6 @@ class FiltersTest(BaseTest, unittest.TestCase):
|
|||
self.assertTrue(Filters.status_update(self.update))
|
||||
self.message.pinned_message = None
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
@ -48,18 +48,15 @@ class KeyboardButtonTest(BaseTest, unittest.TestCase):
|
|||
}
|
||||
|
||||
def test_keyboard_button_de_json(self):
|
||||
keyboard_button = telegram.KeyboardButton.de_json(
|
||||
self.json_dict)
|
||||
keyboard_button = telegram.KeyboardButton.de_json(self.json_dict)
|
||||
|
||||
self.assertEqual(keyboard_button.text, self.text)
|
||||
self.assertEqual(keyboard_button.request_location,
|
||||
self.request_location)
|
||||
self.assertEqual(keyboard_button.request_contact,
|
||||
self.request_contact)
|
||||
self.assertEqual(keyboard_button.request_contact, self.request_contact)
|
||||
|
||||
def test_keyboard_button_to_json(self):
|
||||
keyboard_button = telegram.KeyboardButton.de_json(
|
||||
self.json_dict)
|
||||
keyboard_button = telegram.KeyboardButton.de_json(self.json_dict)
|
||||
|
||||
self.assertTrue(self.is_json(keyboard_button.to_json()))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue