feat(py-monitor): add KeywordTests()
This commit is contained in:
1 parent
d7f5a1c7b3
commit
cfc525d41b
1 file changed
+5
@@ -51,6 +51,11 @@ class PriceTests(unittest.TestCase):
|
||||
self.assertIsNone(normalize_condition("refurbished"))
|
||||
|
||||
|
||||
class KeywordTests(unittest.TestCase):
|
||||
|
||||
def test_case_insensitive_match(self):
|
||||
self.assertTrue(title_matches_keyword("iPhone 13 PROTECTOR", ["protector"]))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user