def test_analyze_line(self, payload, should_flag): logic = IbmCosHmacDetector() output = logic.analyze_line(payload, 1, 'mock_filename') assert len(output) == int(should_flag) if should_flag: assert list(output.values())[0].secret_value == SECRET_ACCESS_KEY
def test_analyze_line(self, payload, should_flag): logic = IbmCosHmacDetector() output = logic.analyze_line(payload, 1, 'mock_filename') assert len(output) == int(should_flag)