#NEWLINE# def test_plugin_role_conflict_with_core_roles( self ) : #NEWLINE# #INDENT# plugin = self . create_plugin ( { #NEWLINE# #INDENT# 'role_a' : { #NEWLINE# #INDENT# 'name' : 'Role X' , #NEWLINE# 'description' : 'Role X is ...' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# expected_message = 'Plugin \\(ID={0}\\) is unable to register the following node roles: role_a' . format ( plugin . id ) #NEWLINE# with self . assertRaisesRegexp ( errors . AlreadyExists , expected_message ) : #NEWLINE# #INDENT# objects . Cluster . get_roles ( plugin . cluster )