'Test that \'ln\' creates a file which appears as a link in the output of
\'ls\'. Check that removing the new file succeeds without output.'

def testLink(self):

    def _check(results):
        self.flushLoggedErrors()
        self.assertEqual(results[0], '')
        self.assertTrue(results[1].startswith('l'), 'link    failed')
        return self.runCommand('rm    testLink')
    d = self.runScript('ln    testLink    testfile1', 'ls    -l    testLink')
    d.addCallback(_check)
    d.addCallback(self.assertEqual, '')
    return d
