def test_pretty_class():
 class C:
  pass
 class D(object, ):
  pass
 assert (pretty(C) == str(C))
 assert (pretty(D) == str(D))

def test_pretty_class ( ) : class C : pass class D ( object , ) : pass assert ( pretty ( C ) == str ( C ) ) assert ( pretty ( D ) == str ( D ) )
test that the printer dispatcher correctly handles classes .