def test_bad_call_raises(): with pytest.raises(TypeError): htmap.mapped('foo')
def mapped_power(power): mapper = htmap.mapped(power) return mapper
def mapped_doubler(doubler): mapper = htmap.mapped(doubler) return mapper
def mapped_sleepy_double(sleepy_double): mapper = htmap.mapped(sleepy_double) return mapper