#NEWLINE# @ mock . patch ( 'storyboardclient.v1.project_groups.ProjectsNestedManager._put' ) #NEWLINE# def test_project_groups_add_project( self , mock_private_put ) : #NEWLINE# #INDENT# test_project_group = project_groups . ProjectGroup ( mock . MagicMock ( ) , info = { #NEWLINE# #INDENT# 'id' : 'test_pg_id' , #NEWLINE# #UNINDENT# } ) #NEWLINE# test_project = projects . Project ( mock . MagicMock ( ) , info = { #NEWLINE# #INDENT# 'id' : 'test_project_id' , #NEWLINE# #UNINDENT# } ) #NEWLINE# test_project_group . projects . add ( test_project_group ) #NEWLINE# mock_private_put . assert_called_once_with ( '/project_groups/test_pg_id/projects/test_project_id' )