'This example derived from bug description in issue 514.
@return: L{Deferred} of command response'

def test_Year(self):

    fileList = ftp.FTPFileListProtocol()
    exampleLine = '-rw-r--r--            1    root                    other                                531    Jan    29    2003    README\n'
    class PrintLine(protocol.Protocol, ):
        def connectionMade(self):
            self.transport.write(exampleLine)
            self.transport.loseConnection()
    def check(ignored):
        file = fileList.files[0]
        self.assertTrue((file['size'] == 531), 'misparsed    fileitem')
        self.assertTrue((file['date'] == 'Jan    29    2003'), 'misparsed    fileitem')
        self.assertTrue((file['filename'] == 'README'), 'misparsed    fileitem')
    d = loopback.loopbackAsync(PrintLine(), fileList)
    return d.addCallback(check)
