def METHOD_NAME(mock_db, mocker):
    """
    tests the parsing and processing the ua found by the online query
    """
    http_analyzer = ModuleFactory().create_http_analyzer_obj(mock_db)
    # use a different profile for this unit test to make sure we don't already have info about
    # it in the db
    profileid = 'profile_192.168.99.99'
    mock_db.get_user_agent_from_profile.return_value = None
    # mock the function that gets info about the given ua from an online db
    mock_requests = mocker.patch("requests.get")
    mock_requests.return_value.status_code = 200
    mock_requests.return_value.text = """{
        "agent_name":"Safari",
        "os_type":"Macintosh",
        "os_name":"OS X"
    }"""
    # add os_type , os_name and agent_name to the db
    ua_info = http_analyzer.get_user_agent_info(SAFARI_UA, profileid)
    assert ua_info['os_type'] == 'Macintosh'
    assert ua_info['browser'] == 'Safari'