def test_str():
 mlp = MLP(nvis=2, layers=[Linear(2, 'h0', irange=0), Linear(2, 'h1', irange=0)])
 s = str(mlp)
 assert isinstance(s, six.string_types)

def test_str ( ) : mlp = MLP ( nvis = 2 , layers = [ Linear ( 2 , 'h0' , irange = 0 ) , Linear ( 2 , 'h1' , irange = 0 ) ] ) s = str ( mlp ) assert isinstance ( s , six . string_types )
make sure the __str__ method returns a string .