<s> import textwrap <EOL> from oslotest import base <EOL> import yaml <EOL> from releasetools import governance <EOL> TEAM_TEXT = textwrap . dedent ( """<STR_LIT>""" ) <EOL> TEAM_DATA = yaml . load ( TEAM_TEXT ) <EOL> class GetRepositoriesTest ( base . BaseTestCase ) : <EOL> def test_all ( self ) : <EOL> repos = governance . get_repositories ( <EOL> TEAM_DATA , <EOL> None , <EOL> None , <EOL> [ ] , <EOL> code_only = False , <EOL> ) <EOL> repo_names = sorted ( r . name for r in repos ) <EOL> self . assertEqual ( <EOL> sorted ( [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) , <EOL> repo_names , <EOL> ) <EOL> def test_code_only ( self ) : <EOL> repos = governance . get_repositories ( <EOL> TEAM_DATA , <EOL> None , <EOL> None , <EOL> [ ] , <EOL> code_only = True , <EOL> ) <EOL> repo_names = sorted ( r . name for r in repos ) <EOL> self . assertEqual ( <EOL> sorted ( [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) , <EOL> repo_names , <EOL> ) <EOL> def test_team_name ( self ) : <EOL> repos = governance . get_repositories ( <EOL> TEAM_DATA , <EOL> '<STR_LIT>' , <EOL> None , <EOL> [ ] , <EOL> code_only = False , <EOL> ) <EOL> repo_names = [ r . name for r in repos ] <EOL> self . assertEqual ( <EOL> [ '<STR_LIT>' ] , <EOL> repo_names , <EOL> ) <EOL> def test_team_tag ( self ) : <EOL> repos = governance . get_repositories ( <EOL> TEAM_DATA , <EOL> None , <EOL> None , <EOL> [ '<STR_LIT>' ] , <EOL> code_only = False , <EOL> ) <EOL> repo_names = sorted ( r . name for r in repos ) <EOL> self . assertEqual ( <EOL> sorted ( [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) , <EOL> repo_names , <EOL> ) <EOL> def test_deliverable_tag ( self ) : <EOL> repos = governance . get_repositories ( <EOL> TEAM_DATA , <EOL> None , <EOL> None , <EOL> [ '<STR_LIT>' ] , <EOL> code_only = False , <EOL> ) <EOL> repo_names = sorted ( r . name for r in repos ) <EOL> self . assertEqual ( <EOL> [ '<STR_LIT>' ] , <EOL> repo_names , <EOL> ) <EOL> def test_deliverable_name ( self ) : <EOL> repos = governance . get_repositories ( <EOL> TEAM_DATA , <EOL> None , <EOL> '<STR_LIT>' , <EOL> [ ] , <EOL> code_only = False , <EOL> ) <EOL> repo_names = sorted ( r . name for r in repos ) <EOL> self . assertEqual ( <EOL> [ '<STR_LIT>' ] , <EOL> repo_names , <EOL> ) <EOL> class GetRepoOwnerTest ( base . BaseTestCase ) : <EOL> def test ( self ) : <EOL> owner = governance . get_repo_owner ( <EOL> TEAM_DATA , <EOL> '<STR_LIT>' , <EOL> ) <EOL> self . assertEqual ( '<STR_LIT>' , owner ) </s>
