#from routersploit.modules.exploits.routers.dlink.dlink_auth_bypass import Exploit


def test_check_success(target):
    return

    """ Test scenario - successful check """

    cgi_mock = target.get_route_mock("/", methods=["GET"])
    cgi_mock.return_value = (
        "test"
        "Home/bsc_internet.htm"
        "test"
        "/public/logout.htm"
        "test"
    )

    exploit = Exploit()
    exploit.target = target.host
    exploit.port = target.port

    assert exploit.check()
    assert exploit.run() is None