def test_re_search_is_used_for_matching(self): set_config_option('notify_on_messages_that_match', 'bar') self.assertTrue(notify_on_messages_that_match('foobar'))
def test_returns_true_when_message_matches(self): set_config_option('notify_on_messages_that_match', 'foo') self.assertTrue(notify_on_messages_that_match('foobar'))
def test_returns_false_when_no_pattern_matches(self): set_config_option('notify_on_messages_that_match', 'xyz') self.assertFalse(notify_on_messages_that_match('foobar'))
def test_re_search_is_used_for_matching(self): set_config_option('notify_on_messages_that_match', 'bar') self.assertTrue(notify_on_messages_that_match('foobar'))
def test_returns_true_when_message_matches(self): set_config_option('notify_on_messages_that_match', 'foo') self.assertTrue(notify_on_messages_that_match('foobar'))
def test_returns_false_when_no_pattern_matches(self): set_config_option('notify_on_messages_that_match', 'xyz') self.assertFalse(notify_on_messages_that_match('foobar'))