'Check the output of the stat method on a file.'

def test_statFile(self):

    fileContent = 'wobble\n'
    self.createFile('file.txt', fileContent)
    d = self.shell.stat(('file.txt',), ('size', 'directory'))
    def cb(res):
        self.assertEqual(res[0], len(fileContent))
        self.assertFalse(res[1])
    d.addCallback(cb)
    return d
