'Make sure we cannot create duplicate libraries'

def test_duplicate_library(self):

    (org, lib_code) = ('DuplicateX', 'DUP')
    LibraryFactory.create(org=org, library=lib_code, modulestore=self.store)
    with self.assertRaises(DuplicateCourseError):
        LibraryFactory.create(org=org, library=lib_code, modulestore=self.store)
