'When two courses share the same org and course name and
both have a module with the same url_name, the definitions shouldn\'t clash.
TODO (vshnayder): once we have a CMS, this shouldn\'t
happen--locations should uniquely name definitions.  But in
our imperfect XML world, it can (and likely will) happen.'

def test_definition_loading(self):

    modulestore = XMLModuleStore(DATA_DIR, source_dirs=['toy', 'two_toys'])
    location = Location('edX', 'toy', '2012_Fall', 'video', 'Welcome', None)
    toy_video = modulestore.get_item(location)
    location_two = Location('edX', 'toy', 'TT_2012_Fall', 'video', 'Welcome', None)
    two_toy_video = modulestore.get_item(location_two)
    self.assertEqual(toy_video.youtube_id_1_0, 'p2Q6BrNhdh8')
    self.assertEqual(two_toy_video.youtube_id_1_0, 'p2Q6BrNhdh9')
