[PATCH] Add support for filezilla server

Blake Winton bwinton at latte.ca
Tue Oct 9 18:42:08 BST 2007


Martin Pool wrote:
> On 10/7/07, Gary van der Merwe <garyvdm at gmail.com> wrote:
>> Unfortunately to be able to test this, you would need to have a
>> filezilla server installed. The other suggestion was to test that
>> _translate_perm_error returns the correct error with certain
>> parameters passed to it. I feel that this is testing that the code
>> does what it does, and not what it is meant to do.
>> I'm not sure where to proceed from here. Any suggestions welcome.
> 
> I can't see any good middle ground either: testing it against the real
> server is impractical, and just testing that this function detects the
> message is too trivial.  So I'm going to just merge this.

Could someone with access to a filezilla server write some sort of 
Mock-filezilla transport which doesn't connect to a back-end, but 
instead returns the responses that a real filezilla server would return?

(I've done this for some of my personal projects, and it's been 
complicated, but it has worked...)

Later,
Blake.



More information about the bazaar mailing list