
Comment: An exception occurred in this state: Traceback (most recent call last):

 "/usr/lib/python2.7/dist-packages/salt/state.py", line 1378, in call
**cdata['kwargs'])

 "/usr/lib/python2.7/dist-packages/salt/states/iptables.py", line 233, in append
rule = __salt__['iptables.build_rule'](family=family, **kwargs)

 "/usr/lib/python2.7/dist-packages/salt/modules/iptables.py", line 135, in build_rule
kwargs['match'].replace(' ', '')
AttributeError: 'list' object has no attribute 'replace'
Changes:

Traceback (most recent call last):


 "/usr/lib/python3.5/unittest/mock.py", line 1576, in _inner

return f(*args, **kw)


 "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched

return func(*args, **keywargs)


 "/home/ubuntu/binaryalert/tests/lambda_functions/analyzer/yara_analyzer_test.py", line 60, in test_analyze

mock_subprocess.assert_called_once()


 "/usr/lib/python3.5/unittest/mock.py", line 583, in __getattr__

raise AttributeError(name)
AttributeError: assert_called_once
