def test_string_method_for_nonstring(): v = Value(3) try: v.should.match('foo') Value.fail() except AssertionError: pass
def test_enumerator_foo(): for val in Value.iterate([0,2,4]): val % 2 == 0