'Given that I visit an empty library
No XBlocks should be shown
When I visit the import page
And I upload a library that contains three XBlocks
And I visit the library page
Three XBlocks should be shown'

def test_library_updated(self):

    self.landing_page.visit()
    self.landing_page.wait_until_ready()
    self.assertEqual(len(self.landing_page.xblocks), 0)
    self.import_page.visit()
    self.import_page.upload_tarball(self.tarball_name)
    self.import_page.wait_for_upload()
    self.landing_page.visit()
    self.landing_page.wait_until_ready()
    self.assertEqual(len(self.landing_page.xblocks), 3)
