#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# config = mock . MagicMock ( ) #NEWLINE# plugin = self . plugin_ep . init ( config = config ) #NEWLINE# self . assertTrue ( self . plugin_ep . initialized ) #NEWLINE# self . assertTrue ( ( plugin . config is config ) ) #NEWLINE# self . assertTrue ( ( self . plugin_ep . init ( ) is config ) ) #NEWLINE# self . assertTrue ( ( plugin . config is config ) ) #NEWLINE# self . assertTrue ( ( self . plugin_ep . init ( 123 ) is plugin ) ) #NEWLINE# self . assertTrue ( ( plugin . config is config ) ) #NEWLINE# self . assertFalse ( self . plugin_ep . prepared ) #NEWLINE# self . assertFalse ( self . plugin_ep . misconfigured ) #NEWLINE# self . assertFalse ( self . plugin_ep . available )