'Test a different failure in getDirectory method.
The response should be quoted to be parsed, so it returns an error
otherwise.'

def test_anotherFailedGetDirectory(self):

    self._testLogin()
    d = self.client.getDirectory()
    self.assertFailure(d, ftp.CommandFailed)
    self.assertEqual(self.transport.value(), 'PWD\r\n')
    self.client.lineReceived('257    /bar/baz')
    return d
