#NEWLINE# def register( name , cls ) : #NEWLINE# #INDENT# for m in _expected_methods : #NEWLINE# #INDENT# if ( not getattr ( cls , m , None ) ) : #NEWLINE# #INDENT# raise InvalidLBManager ( "Expected method '{}' not found in {}" . format ( m , cls ) ) #NEWLINE# #UNINDENT# #UNINDENT# _managers [ name ] = cls