'Create a random selection of units under the given parent w/ random names & attrs
:param store: which store (e.g., direct/draft) to create them in
:param parent: the parent to have point to them
(only makes sense if store is \'direct\' and this is \'draft\' or vice versa)'

def create_random_units(self, draft, parent_loc):

    for _ in range(random.randrange(6)):
        location = parent_loc.replace(category=random.choice(['html', 'video', 'problem', 'discussion']), name=uuid.uuid4().hex)
        metadata = {'display_name': str(uuid.uuid4()), 'graded': True}
        data = {}
        self._create_item(location.category, location.name, data, metadata, parent_loc.category, parent_loc.name, draft=draft, split=False)
