'Evaluate class definition.'

def test_ClassDefinition(self):

    done = self.recvlineClient.expect('done')
    self._testwrite("class    Foo:\n DCTB def    bar(self):\n DCTB  DCTB print('Hello,    world!')\n\nFoo().bar()\ndone")
    def finished(ign):
        self._assertBuffer(['>>>    class    Foo:', '...                    def    bar(self):', "...                                    print('Hello,    world!')", '...    ', '>>>    Foo().bar()', 'Hello,    world!', '>>>    done'])
    return done.addCallback(finished)
