#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestCreateNetworkIdentityV3 , self ) . setUp ( ) #NEWLINE# self . network . create_network = mock . Mock ( return_value = self . _network ) #NEWLINE# self . cmd = network . CreateNetwork ( self . app , self . namespace ) #NEWLINE# identity_client = identity_fakes_v3 . FakeIdentityv3Client ( endpoint = fakes . AUTH_URL , token = fakes . AUTH_TOKEN ) #NEWLINE# self . app . client_manager . identity = identity_client #NEWLINE# self . identity = self . app . client_manager . identity #NEWLINE# self . projects_mock = identity_client . identity . projects #NEWLINE# self . projects_mock . get . return_value = fakes . FakeResource ( None , copy . deepcopy ( identity_fakes_v3 . PROJECT ) , loaded = True ) #NEWLINE# self . domains_mock = self . identity . domains #NEWLINE# self . domains_mock . get . return_value = fakes . FakeResource ( None , copy . deepcopy ( identity_fakes_v3 . DOMAIN ) , loaded = True )