test(py-monitor): run test_empty_inputs
This commit is contained in:
1 parent
736873e949
commit
627d80d9a4
1 file changed
+8
@@ -56,6 +56,14 @@ class KeywordTests(unittest.TestCase):
|
||||
def test_case_insensitive_match(self):
|
||||
self.assertTrue(title_matches_keyword("iPhone 13 PROTECTOR", ["protector"]))
|
||||
|
||||
def test_no_match(self):
|
||||
self.assertFalse(title_matches_keyword("iPhone 13", ["samsung"]))
|
||||
|
||||
def test_empty_inputs(self):
|
||||
self.assertFalse(title_matches_keyword("", ["x"]))
|
||||
self.assertFalse(title_matches_keyword("x", []))
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user