Code Duplication    Length = 11-11 lines in 2 locations

tests/test_sigmaJs.py 2 locations

@@ 234-244 (lines=11) @@
231
        e.value) == 'err- 404 rule not found!'
232
233
234
def test_use_bat_report_file():
235
    src = ('test_data/xccdf_org.ssgproject.content_rule_sssd_' +
236
           'ssh_known_hosts_timeout-comment.fail.sh-xccdf_or' +
237
           'g.ssgproject.content_profile_ospp-results-initial.xml')
238
    _dir = os.path.dirname(os.path.realpath(__file__))
239
    FIXTURE_DIR = py.path.local(_dir) / src
240
241
    with pytest.raises(ValueError) as e:
242
        parser = graph.xml_parser.xml_parser(str(FIXTURE_DIR))
243
        assert str(
244
            e.value) == 'err- This is not arf report file.'
245
246
247
def test_get_rule_dict():
@@ 221-231 (lines=11) @@
218
        src, test_data_src, rule_id)
219
220
221
def test_get_def_id_by_rule_id():
222
    src = 'test_data/ssg-fedora-ds-arf.xml'
223
    _dir = os.path.dirname(os.path.realpath(__file__))
224
    FIXTURE_DIR = py.path.local(_dir) / src
225
226
    parser = graph.xml_parser.xml_parser(str(FIXTURE_DIR))
227
228
    with pytest.raises(ValueError) as e:
229
        parser.get_def_id_by_rule_id('hello')
230
    assert str(
231
        e.value) == 'err- 404 rule not found!'
232
233
234
def test_use_bat_report_file():