def __process_test(test, kw):
        "Ensures that test has been properly formed as necessary."
        if kw:
            test = _Where(test, kw)
        else:
            assert callable(test), 'Test must be callable!'
        return test
Ensures that test has been properly formed as necessary.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py