mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 15:00:40 +01:00
fix test_filters_reply
This commit is contained in:
parent
c5f9e53d44
commit
0cd7ecab50
1 changed files with 0 additions and 1 deletions
|
@ -55,7 +55,6 @@ class FiltersTest(BaseTest, unittest.TestCase):
|
||||||
another_message = Message(1, User(1, "TestOther"), datetime.now(), Chat(0, 'private'))
|
another_message = Message(1, User(1, "TestOther"), datetime.now(), Chat(0, 'private'))
|
||||||
self.message.text = 'test'
|
self.message.text = 'test'
|
||||||
self.assertFalse(Filters.reply(self.message))
|
self.assertFalse(Filters.reply(self.message))
|
||||||
self.assertFalse(Filters.reply(Filters.message))
|
|
||||||
self.message.reply_to_message = another_message
|
self.message.reply_to_message = another_message
|
||||||
self.assertTrue(Filters.reply(self.message))
|
self.assertTrue(Filters.reply(self.message))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue