From 798ff3fb63a6c16e926fe642a824c71567bf7762 Mon Sep 17 00:00:00 2001 From: EdOverflow Date: Fri, 15 Nov 2019 14:54:28 +0100 Subject: [PATCH] Just use assert output in test case. As per @domanchi's suggestion in #267. --- tests/plugins/twilio_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/twilio_test.py b/tests/plugins/twilio_test.py index 8bd8cd201..3d2c83fd9 100644 --- a/tests/plugins/twilio_test.py +++ b/tests/plugins/twilio_test.py @@ -23,4 +23,4 @@ class TestTwilioKeyDetector(object): def test_analyze(self, payload, should_flag): logic = TwilioKeyDetector() output = logic.analyze_line(payload, 1, 'mock_filename') - assert len(output) == int(should_flag) + assert output