def test_pprint_nomod():
 output = pretty.pretty(NoModule)
 nt.assert_equal(output, 'NoModule')

def test_pprint_nomod ( ) : output = pretty . pretty ( NoModule ) nt . assert_equal ( output , 'NoModule' )
test that pprint works for classes with no __module__ .