diff options
author | 2019-11-01 23:24:20 +0100 | |
---|---|---|
committer | 2019-11-01 23:24:20 +0100 | |
commit | a21670459953599c8f13286595520e033da4199a (patch) | |
tree | 069eca0eb836be3bca906654214e3c81c090a7ed /tests | |
parent | Add unit test for links antispam rule (diff) |
Add two more test cases for links rule unit test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/rules/test_links.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/bot/rules/test_links.py b/tests/bot/rules/test_links.py index f71a8e6bb..f043495cf 100644 --- a/tests/bot/rules/test_links.py +++ b/tests/bot/rules/test_links.py @@ -39,6 +39,7 @@ class LinksTests(unittest.TestCase): [msg("bob", 0)], [msg("bob", 2)], [msg("bob", 3)], + [msg("bob", 1), msg("bob", 1)], [msg("bob", 3), msg("alice", 3)] ) @@ -64,6 +65,12 @@ class LinksTests(unittest.TestCase): 3 ), Case( + [msg("alice", 1), msg("alice", 1), msg("alice", 1)], + (msg("alice", 1), msg("alice", 1), msg("alice", 1)), + ("alice",), + 3 + ), + Case( [msg("alice", 2), msg("bob", 3), msg("alice", 1)], (msg("alice", 2), msg("alice", 1)), ("alice",), |