From f680bb3df8ee45d3865803ac6253b69f7f206bdc Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Thu, 29 Jun 2017 12:51:03 -0700 Subject: [PATCH] add a couple more tests to show how the email frequency varies with valid/invalid candidates --- tests/test_email.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_email.py b/tests/test_email.py index 09b9306..15f6751 100755 --- a/tests/test_email.py +++ b/tests/test_email.py @@ -262,6 +262,12 @@ class T(unittest.TestCase): self.smtp_repetition(valid=True, expected=[ 5, 7, 11, 19, 35, 65, 95, 125, 155, 185 ]) + self.smtp_repetition(valid=[False, False, True], expected=[ + 1, 3, 5, 7, 11, 19, 35, 65, 95, 125, 155, 185 + ]) + self.smtp_repetition(valid=[False, False, True, False, True], expected=[ + 1, 3, 5, 13, 29, 59, 89, 119, 149, 179 + ]) class ET(TestBase):