diff --git a/platform/py-monitor/tests/test_core.py b/platform/py-monitor/tests/test_core.py index 0bd4f8f3..67d164ec 100644 --- a/platform/py-monitor/tests/test_core.py +++ b/platform/py-monitor/tests/test_core.py @@ -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()