'From the home page:
Click "New Library"
Fill out the form
Submit the form
We should be redirected to the edit view for the library
Return to the home page
The newly created library should now appear in the list of libraries'

def test_create_library(self):

    unique_suffix = uuid4().hex[:4]
    name = ('New    Library    Name    ' + unique_suffix)
    org = ('TestOrgX' + unique_suffix)
    number = ('TESTLIB_' + unique_suffix)
    self.auth_page.visit()
    self.dashboard_page.visit()
    self.assertFalse(self.dashboard_page.has_library(name=name, org=org, number=number))
    self.assertTrue(self.dashboard_page.has_new_library_button())
    self.dashboard_page.click_new_library()
    self.assertTrue(self.dashboard_page.is_new_library_form_visible())
    self.dashboard_page.fill_new_library_form(name, org, number)
    self.assertTrue(self.dashboard_page.is_new_library_form_valid())
    self.dashboard_page.submit_new_library_form()
    lib_page = LibraryEditPage(self.browser, LibraryLocator(org, number))
    lib_page.wait_for_page()
    self.dashboard_page.visit()
    self.assertTrue(self.dashboard_page.has_library(name=name, org=org, number=number))
    self.dashboard_page.click_library(name)
    lib_page.wait_for_page()
