mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
15 lines
364 B
Python
15 lines
364 B
Python
import unittest
|
|
|
|
from backend.helpers import search_filter
|
|
|
|
class Test_Reminder_Handler(unittest.TestCase):
|
|
def test_filter_function(self):
|
|
p = {
|
|
'title': 'TITLE',
|
|
'text': 'TEXT'
|
|
}
|
|
for test_case in ('', 'title', 'ex'):
|
|
self.assertTrue(search_filter(test_case, p))
|
|
for test_case in (' ', 'Hello'):
|
|
self.assertFalse(search_filter(test_case, p))
|