Most viewed Python recipes tagged "meta:requires=utility_mill"http://code.activestate.com/recipes/langs/python/tags/meta:requires=utility_mill/views/2009-06-03T14:36:25-07:00ActiveState Code RecipesUtility Mill Support Example (Python)
2009-06-03T14:36:25-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/576793-utility-mill-support-example/
<p style="color: grey">
Python
recipe 576793
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/rpc/">rpc</a>, <a href="/recipes/tags/testing/">testing</a>, <a href="/recipes/tags/utility_mill/">utility_mill</a>).
</p>
<p>For those of you wondering how use "utility_mill" (my previous recipe), check out "hard_test()" and "soft_test()" in this example usage. The code in the lower sections generates test data and is only useful if trying to understand the "expressions" recipe initially ported from C#. The hard test shows how easy it is to execute a utility that you know the name of. The most recent version is used, but this can be inefficient. The soft test runs the same utility once a minute but only updates the version once an hour. This can saves the Utility Mill some extra work that may not be necessary.</p>