'Create repositories for testing complex dependency generation.'

def test_0015_create_tool_dependency_repositories(self):

    '\n                                This    is    step    3    -    Create    complex_dependency_test_1_0460,    complex_dependency_test_2_0460,    complex_dependency_test_3_0460,\n                                complex_dependency_test_4_0460,    complex_dependency_test_5_0460.    Each    of    these    repositories    will    be    populated    in    a    way\n                                that    tests    a    different    way    to    achieve    the    same    resulting    dependency    structure    using    complex    tool    dependencies.\n                                The    different    methods    being    tested    are:\n                                -    Upload    an    uncompressed    tool_dependencies.xml    to    the    root    of    the    repository.\n                                -    Upload    a    tool_dependencies.xml    in    a    tarball,    not    in    a    subfolder.\n                                -    Upload    a    tool_dependencies.xml    in    a    subfolder    within    a    tarball.\n                                -    Upload    via    url,    with    the    tool_dependencies.xml    in    the    root    of    another    repository.\n                                -    Upload    via    url,    with    the    tool_dependencies.xml    in    a    subfolder    within    another    repository.\n                                '
    category = self.test_db_util.get_category_by_name(category_name)
    repository_base_name = 'complex_dependency_test_%d_0460'
    repository_base_description = 'Test    #%d    for    complex    repository    dependency    definitions.'
    repository_base_long_description = 'Test    #%d    for    complex    repository    dependency    definitions.'
    for number in range(1, 6):
        self.get_or_create_repository(name=(repository_base_name % number), description=(repository_base_description % number), long_description=(repository_base_long_description % number), owner=common.test_user_1_name, category_id=self.security.encode_id(category.id), strings_displayed=[])
