def test_callability_checking():
 gotoutput = pretty.pretty(Dummy2())
 expectedoutput = 'Dummy1(...)'
 nt.assert_equal(gotoutput, expectedoutput)

def test_callability_checking ( ) : gotoutput = pretty . pretty ( Dummy2 ( ) ) expectedoutput = 'Dummy1(...)' nt . assert_equal ( gotoutput , expectedoutput )
test that the _repr_pretty_ method is tested for callability and skipped if not .