'Test get_libraries()'

def test_get_libraries(self):

    libraries = [LibraryFactory.create(modulestore=self.store) for _ in range(3)]
    lib_dict = dict([(lib.location.library_key, lib) for lib in libraries])
    lib_list = self.store.get_libraries()
    self.assertEqual(len(lib_list), len(libraries))
    for lib in lib_list:
        self.assertIn(lib.location.library_key, lib_dict)
