#NEWLINE# def test_groups( self ) : #NEWLINE# #INDENT# paging = { #NEWLINE# #INDENT# 'page' : 1 , #NEWLINE# 'per_page' : 5 , #NEWLINE# #UNINDENT# } #NEWLINE# self . service . groups ( ) . get ( ) #NEWLINE# self . expect ( 'GET' , '/groups' ) #NEWLINE# self . service . groups ( ) . get ( page = 1 , per_page = 5 ) #NEWLINE# self . expect ( 'GET' , '/groups' , self ) #NEWLINE# self . service . group ( 10 ) . get ( ) #NEWLINE# self . expect ( 'GET' , '/groups/10' ) #NEWLINE# self . assertRaises ( base . MethodNotSupported , self . service . groups ( ) . create , { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRaises ( base . MethodNotSupported , self . service . group ( 10 ) . delete ) #NEWLINE# self . assertRaises ( base . MethodNotSupported , self . service . group ( 10 ) . update , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )