def test_prep_response_fields_exception(self, arg):
     err_msg = "Invalid type of 'reposponse_format' argument."
     session = SolrSession("my_client_key", "example.com")
     with pytest.raises(BookopsSolrError) as exc:
         session._prep_response_fields(arg)
     assert err_msg in str(exc.value)
     session.close()
 def test_prep_response_fields(self, arg, expectation):
     session = SolrSession("my_client_key", "example.com")
     assert session._prep_response_fields(arg) == expectation
     session.close()