'L{LocalWorkerAMP.run} calls C{stopTest} on its test result once the
C{Run} commands has succeeded.'

def test_stopAfterRun(self):

    result = object()
    stopped = []
    def fakeCallRemote(command, testCase):
        return succeed(result)
    self.managerAMP.callRemote = fakeCallRemote
    class StopTestResult(TestResult, ):
        def stopTest(self, test):
            stopped.append(test)
    d = self.managerAMP.run(self.testCase, StopTestResult())
    self.assertEqual([self.testCase], stopped)
    return d.addCallback(self.assertIdentical, result)
