def test_is_in_success(): assert_match_success(is_in([1, 2, 3]), 1, "1")
def test_equal_to_success(): assert_match_success(equal_to(1), 1, "1")
def test_has_length_success(): assert_match_success(has_length(3), "foo", "3")
def test_less_than_success(): assert_match_success(less_than(1), 0, "0")
def test_is_between_success(): assert_match_success(is_between(1, 3), 2, "2")
def test_is_false_success(): assert_match_success(is_false(), False, "false")
def test_greater_than_success(): assert_match_success(greater_than(1), 2, "2")
def test_is_integer_with_arg_success(): assert_match_success(is_integer(1), 1, "1")
def test_is_bool_success(): assert_match_success(is_bool(), True, "true")
def test_is_float_with_arg_success(): assert_match_success(is_float(1.2), 1.2, "1.2")
def test_is_integer_success(): assert_match_success(is_integer(), 1, "1")
def test_is_float_success(): assert_match_success(is_float(), 1.2, "1.2")
def test_is_dict_with_argument_success(): assert_match_success(is_dict(has_entry("foo")), {"foo": 1}, "1")
def test_has_item_success(): result = assert_match_success(has_item(greater_than(2)), [1, 3], "index 1") assert result.index == 1 assert result.item == 3
def test_is_str_with_arg_success(): assert_match_success(is_str("foo"), "foo", "foo")
def test_is_bool_with_arg_success(): assert_match_success(is_bool(True), True, "true")
def test_is_true_success(): assert_match_success(is_true(), True, "true")
def test_is_list_success(): assert_match_success(is_list(), [], "[]")
def test_not_equal_to_success(): assert_match_success(not_equal_to(1), 2, "2")
def test_is_list_with_tuple_success(): assert_match_success(is_list(), (), "[]")
def test_greater_than_or_equal_to_success(): assert_match_success(greater_than_or_equal_to(1), 1, "1")
def test_is_list_with_arg_success(): assert_match_success(is_list(has_length(2)), [21, 42], "2")
def test_less_than_or_equal_to_success(): assert_match_success(less_than_or_equal_to(1), 1, "1")
def test_is_dict_success(): assert_match_success(is_dict(), {}, "{}")
def test_is_none_success(): assert_match_success(is_none(), None, "null")
def test_is_str_success(): assert_match_success(is_str(), "foo", "foo")
def test_is_not_none_success(): assert_match_success(is_not_none(), "foo", "foo")
def test_is_str_with_unicode_success(): assert_match_success(is_str(), u"ààà", u"ààà")
def test_has_length_with_matcher_success(): assert_match_success(has_length(greater_than(2)), "foo", "3")
def test_has_only_values_success(): assert_match_success(has_only_values([3, 1, 2]), [1, 2, 3], "got")