def test_scan_non_sdist(db_session):
    MalwareCheckFactory.create(name='SetupPatternCheck', state=MalwareCheckState.Enabled)
    check = c.SetupPatternCheck(db_session)
    file = FileFactory.create(packagetype='bdist_wheel')
    check.scan(obj=file, file_url=pretend.stub())
    assert (check._verdicts == [])
def test_scan_non_sdist(db_session):
    MalwareCheckFactory.create(name='SetupPatternCheck', state=MalwareCheckState.Enabled)
    check = c.SetupPatternCheck(db_session)
    file = FileFactory.create(packagetype='bdist_wheel')
    check.scan(obj=file, file_url=pretend.stub())
    assert (check._verdicts == [])