@pytest.mark.parametrize(('obj', 'file_url'), [(None, pretend.stub()), (pretend.stub(), None)])
def test_scan_missing_kwargs(db_session, obj, file_url):
    MalwareCheckFactory.create(name='SetupPatternCheck', state=MalwareCheckState.Enabled)
    check = c.SetupPatternCheck(db_session)
    with pytest.raises(c.FatalCheckException):
        check.scan(obj=obj, file_url=file_url)
@pytest.mark.parametrize(('obj', 'file_url'), [(None, pretend.stub()), (pretend.stub(), None)])
def test_scan_missing_kwargs(db_session, obj, file_url):
    MalwareCheckFactory.create(name='SetupPatternCheck', state=MalwareCheckState.Enabled)
    check = c.SetupPatternCheck(db_session)
    with pytest.raises(c.FatalCheckException):
        check.scan(obj=obj, file_url=file_url)