<br><br><div><span class="gmail_quote">On 10/31/06, <b class="gmail_sendername">Martin Pool</b> &lt;<a href="mailto:mbp@canonical.com">mbp@canonical.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It would actually be better to have a non-blackbox test that only ran<br>get_alias directly; you'll need to make sure of how to set up the<br>right configuration for the scope of this call which may be slightly<br>complicated.&nbsp;&nbsp;Since we identified the unicode problem we should test
<br>unicode handling too.<br></blockquote></div><br>Hi,<br>I was up for the challenge to write a non-blackbox test, but I ran into some troubles:<br>It seems that the GlobalConfiguration gets read every time it is required.
<br>Should it not be read once (lazily) and be kept in memory?<br>The reason this is problem for me is, that I can't modify the configuration <br>which will be loaded by the get_alias method (in commands.py), since it read anew 
<br>every time its called, and I don't really want to modify the conf file for this<br>non-blackbox test.<br><br>I also think it should be possible to set branch specific aliases,<br>where the branch specific one over-rides the global one.
<br>I'll look into supporting this, If thats ok.<br><br>regards<br>Marius<br><br clear="all"><br>-- <br><br><br><br>I code therefore I am.