New approach for unittest testcase (stolen from django)