#NEWLINE# def test_post_with_defaults( self ) : #NEWLINE# #INDENT# 'Testing the POST groups/ API with field defaults' #NEWLINE# name = 'my-group' #NEWLINE# display_name = 'My Group' #NEWLINE# self . _login_user ( admin = True ) #NEWLINE# rsp = self . api_post ( get_review_group_list_url ( ) , { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'display_name' : rsp , #NEWLINE# #UNINDENT# } , expected_mimetype = review_group_item_mimetype ) #NEWLINE# self . assertEqual ( rsp [ 'stat' ] , 'ok' ) #NEWLINE# group = Group . objects . get ( pk = rsp [ 'group' ] [ 'id' ] ) #NEWLINE# self . assertEqual ( group . mailing_list , '' ) #NEWLINE# self . assertEqual ( group . visible , True ) #NEWLINE# self . assertEqual ( group . invite_only , False )