#NEWLINE# def test_create_without_organization( self ) : #NEWLINE# #INDENT# 'Establish that a project can be created without giving an\n        organization. This should create a project with no organization.\n        This action uses the /projects/ endpoint\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# endpoint = '/projects/' #NEWLINE# t . register_json ( endpoint , { #NEWLINE# #INDENT# 'count' : 0 , #NEWLINE# 'results' : [ ] , #NEWLINE# 'next' : None , #NEWLINE# 'previous' : None , #NEWLINE# #UNINDENT# } , method = 'GET' ) #NEWLINE# t . register_json ( endpoint , { #NEWLINE# #INDENT# 'changed' : True , #NEWLINE# 'id' : 42 , #NEWLINE# #UNINDENT# } , method = 'POST' ) #NEWLINE# self . res . create ( name = 'bar' , scm_type = 'git' ) #NEWLINE# self . assertEqual ( t . requests [ 0 ] . method , 'GET' ) #NEWLINE# self . assertEqual ( t . requests [ 1 ] . method , 'POST' ) #NEWLINE# self . assertEqual ( len ( t . requests ) , 2 )