def METHOD_NAME(self):
    p = SimpleAuthenticationProvider
    integration = self._external_integration(self._str)
    integration.setting(p.TEST_IDENTIFIER).value = "barcode"
    integration.setting(p.TEST_PASSWORD).value = "pass"
    integration.setting(p.PASSWORD_KEYBOARD).value = p.NULL_KEYBOARD
    provider = p(self._default_library, integration)
    patron_data = PatronData(authorization_identifier="barcode")
    patron = self._patron()
    patron.authorization_identifier = "barcode"
    #Returns None if nothing is passed in
    assert provider._remote_patron_lookup(None) == None
    #Returns a patron if a patron is passed in and something is found
    result = provider._remote_patron_lookup(patron)
    assert result.permanent_id == "barcode_id"
    #Returns None if no patron is found
    patron.authorization_identifier = "wrong barcode"
    result = provider._remote_patron_lookup(patron)
    assert result == None
    #Returns a patron if a PatronData object is passed in and something is found
    result = provider._remote_patron_lookup(patron_data)
    assert result.permanent_id == "barcode_id"