#NEWLINE# def test_clone_buggy( ) : #NEWLINE# #INDENT# buggy = Buggy ( ) #NEWLINE# buggy . a = 2 #NEWLINE# assert_raises ( RuntimeError , clone , no_estimator ) #NEWLINE# no_estimator = NoEstimator ( ) #NEWLINE# assert_raises ( TypeError , clone , no_estimator ) #NEWLINE# varg_est = VargEstimator ( ) #NEWLINE# assert_raises ( RuntimeError , clone , varg_est )