[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Help writing Python test

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-11-09 11:18:01 CET

Blair Zajac wrote:

>I could use some help in finishing this simple test. I'm stuck in
>setting up the expected_* variables properly. I'm not a Python
>expert by no means and am not familiar with our test suite.
>
>This test should verify that new_file2.bin's svn:mime-type is set
>to 'application/octet-stream' instead of 'image/fake_image', which
>is a bug for now, but can easily be changed later on.
>
Just don't forget to mark the test with XFail, if it tickles a known bug.

[snip]

> expected_disk.add({'new_file2.bin' : Item()})
># expected_disk.tweak('new_file2.bin',
># props={'svn:mime-type' : orig_mime_type})
>
expected_disk.add({'new_file2.bin' :
                   Item(props={'svn:mime-type' : orig_mime_type})})

That should do it.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 9 11:18:54 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.