#NEWLINE# def test_get_enabled( self ) : #NEWLINE# #INDENT# self . _create_test_plugins ( ) #NEWLINE# cluster = self . _create_test_cluster ( ) #NEWLINE# plugin = ClusterPlugins . get_connected_plugins ( cluster ) . first ( ) #NEWLINE# ClusterPlugins . set_attributes ( cluster . id , plugin . id , enabled = True ) #NEWLINE# enabled_plugin = ClusterPlugins . get_enabled ( cluster . id ) . first ( ) #NEWLINE# self . assertEqual ( plugin . id , enabled_plugin . id )