'If the server returns a response line which cannot be parsed, the
L{Deferred} returned by L{ftp.FTPClient.removeFile} is errbacked with a
L{BadResponse} containing the response.'

def test_unparsableRemoveFileResponse(self):

    self._testLogin()
    d = self.client.removeFile('/tmp/test')
    response = '765    blah    blah    blah'
    self.client.lineReceived(response.encode(self.client._encoding))
    d = self.assertFailure(d, ftp.BadResponse)
    d.addCallback((lambda exc: self.assertEqual(exc.args, ([response],))))
    return d
