'Purge a library'

def purge_library(self, library_id, library_name):

    params = dict(id=library_id)
    self.visit_url('/library_admin/purge_library', params)
    check_str = ("Library    '%s'    and    all    of    its    contents    have    been    purged" % library_name)
    self.check_page_for_string(check_str)
