'warn_only=True, error(func=None) => calls warn()'

@with_patched_object(utils, 'warn', Fake('warn', callable=True, expect_call=True))
def test_error_warns_if_warn_only_True_and_func_None(self):

    with settings(warn_only=True):
        error('foo')
