'Test that we can create a library, and see how many mongo calls it uses to do so.
Expected mongo calls, in order:
find_one({\'org\': \'...\', \'run\': \'library\', \'course\': \'...\'})
insert(definition: {\'block_type\': \'library\', \'fields\': {}})
insert_structure(bulk)
insert_course_index(bulk)
get_course_index(bulk)'

def test_create_library(self):

    with check_mongo_calls(2, 3):
        LibraryFactory.create(modulestore=self.store)
