'Check that \'ls -l\' output includes the access permissions and that
this output changes appropriately with \'chmod\'.'

def testChAttrs(self):

    def _check(results):
        self.flushLoggedErrors()
        self.assertTrue(results[0].startswith('-rw-r--r--'))
        self.assertEqual(results[1], '')
        self.assertTrue(results[2].startswith('----------'), results[2])
        self.assertEqual(results[3], '')
    d = self.runScript('ls    -l    testfile1', 'chmod    0    testfile1', 'ls    -l    testfile1', 'chmod    644    testfile1')
    return d.addCallback(_check)
