Skip to content

Commit

Permalink
Add missing updates to Twilio test file.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdOverflow committed Nov 10, 2019
1 parent a649963 commit 9f6a388
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/plugins/twilio_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ class TestTwilioKeyDetector(object):
[
(
'SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
True
True,
),
(
'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
True
),
True,
),
],
)

def test_analyze(self, payload, should_flag):
logic = TwilioKeyDetector()

output = logic.analyze_line(payload, 1, 'mock_filename')
assert len(output) == int(should_flag)

0 comments on commit 9f6a388

Please sign in to comment.