#NEWLINE# def test_illegal_part_name( self ) : #NEWLINE# #INDENT# from grease import World #NEWLINE# from grease.component import ComponentError #NEWLINE# world = World ( ) #NEWLINE# self . assertRaises ( ComponentError , setattr , world . components , 'entities' , TestComponent ( ) ) #NEWLINE# self . assertRaises ( ComponentError , setattr , world . systems , 'entities' , TestSystem ( ) ) #NEWLINE# self . assertRaises ( ComponentError , setattr , world . renderers , 'entities' , TestRenderer ( ) ) #NEWLINE# self . assertRaises ( ComponentError , setattr , world . components , '_reserved' , TestComponent ( ) ) #NEWLINE# self . assertRaises ( ComponentError , setattr , world . systems , '_reserved' , TestSystem ( ) ) #NEWLINE# self . assertRaises ( ComponentError , setattr , world . renderers , '_reserved' , TestRenderer ( ) ) #NEWLINE# self . assertRaises ( AttributeError , setattr , world . components , 'insert' , TestComponent ( ) ) #NEWLINE# self . assertRaises ( AttributeError , setattr , world . systems , 'insert' , TestSystem ( ) ) #NEWLINE# self . assertRaises ( AttributeError , setattr , world . renderers , 'insert' , TestRenderer ( ) )