'Create a mocked session and add headers and auth attributes.'

def create_session_mock(self, *args):

    session = self.create_mocked_session()
    base_attrs = ['headers', 'auth']
    attrs = dict(((key, mock.Mock()) for key in set(args).union(base_attrs)))
    session.configure_mock(**attrs)
    session.delete.return_value = None
    session.get.return_value = None
    session.patch.return_value = None
    session.post.return_value = None
    session.put.return_value = None
    session.has_auth.return_value = True
    return session
