mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 06:50:29 +01:00
use correct filter in command filter test
This commit is contained in:
parent
1d33c39a1b
commit
a3dae1f112
1 changed files with 2 additions and 2 deletions
|
@ -47,9 +47,9 @@ class FiltersTest(BaseTest, unittest.TestCase):
|
|||
|
||||
def test_filters_command(self):
|
||||
self.message.text = 'test'
|
||||
self.assertFalse(Filters.text(self.update))
|
||||
self.assertFalse(Filters.command(self.update))
|
||||
self.message.text = '/test'
|
||||
self.assertTrue(Filters.text(self.update))
|
||||
self.assertTrue(Filters.command(self.update))
|
||||
|
||||
def test_filters_audio(self):
|
||||
self.message.audio = 'test'
|
||||
|
|
Loading…
Reference in a new issue