Thanks a lot. I have added the tests to test_status.py and test_diff.py .<br><br><br><div><span class="gmail_quote">On 10/22/06, <b class="gmail_sendername">Aaron Bentley</b> <<a href="mailto:aaron.bentley@utoronto.ca">
aaron.bentley@utoronto.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1
<br><br>Cheuksan Edward Wang wrote:<br>><br>> I have fixed 48136. I cannot write a simple blackbox test because a<br>> local push always updates the working tree. Can someone teach me how to<br>> write a test for this?
<br><br>You're not really testing push, but diff and status. So you can just<br>use WorkingTree.set_last_revision() to force the tree to be out of date.<br><br>Aaron<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.2.2
(GNU/Linux)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br><br>iD8DBQFFOlU+0F+nu1YWqI0RAn6fAJ9Fdciyk4djMZLXabW8WBHh3oiQYACdHVpH<br>yLZcc2xkomTDhPRqtew9yHU=<br>
=88Pg<br>-----END PGP SIGNATURE-----<br></blockquote></div><br>