# Path: selene/common/predicate.py
# def is_truthy(something):
# def equals_ignoring_case(expected):
# def equals(expected, ignore_case=False):
# def is_greater_than(expected):
# def is_greater_than_or_equal(expected):
# def is_less_than(expected):
# def is_less_than_or_equal(expected):
# def includes_ignoring_case(expected):
# def includes(expected, ignore_case=False):
#     def fn(actual):
# def includes_word_ignoring_case(expected):
# def includes_word(expected, ignore_case=False):
# 
# Path: selene/common/predicate.py
# def is_truthy(something):
# def equals_ignoring_case(expected):
# def equals(expected, ignore_case=False):
# def is_greater_than(expected):
# def is_greater_than_or_equal(expected):
# def is_less_than(expected):
# def is_less_than_or_equal(expected):
# def includes_ignoring_case(expected):
# def includes(expected, ignore_case=False):
#     def fn(actual):
# def includes_word_ignoring_case(expected):
# def includes_word(expected, ignore_case=False):


from selene.common.predicate import equals_by_contains_to_list
from selene.common.predicate import equals_to_list
# SOFTWARE.



# noinspection PyPep8Naming
class Test__equals_by_contains_to_list:
    def test_same_size(self):
        expected = ['a']
        actual = ['>a<']
        assert equals_by_contains_to_list(expected)(actual)
        assert not equals_by_contains_to_list(actual)(expected)

    def test_expected_list_is_bigger(self):
        expected = ['a', 'b']
        actual = ['>a<']
        assert not equals_by_contains_to_list(expected)(actual)

    def test_expected_list_is_bigger_and_actual_is_empty(self):
        expected = ['a', 'b']
        actual = []
        assert not equals_by_contains_to_list(expected)(actual)

    def test_expected_list_is_smaller(self):
        expected = ['a']
        actual = ['>a<', '>b<']
        assert not equals_by_contains_to_list(expected)(actual)

    def test_expected_list_is_smaller_and_empty(self):
        expected = []
        actual = ['>a<', '>b<']

# Path: selene/common/predicate.py
# def is_truthy(something):
# def equals_ignoring_case(expected):
# def equals(expected, ignore_case=False):
# def is_greater_than(expected):
# def is_greater_than_or_equal(expected):
# def is_less_than(expected):
# def is_less_than_or_equal(expected):
# def includes_ignoring_case(expected):
# def includes(expected, ignore_case=False):
#     def fn(actual):
# def includes_word_ignoring_case(expected):
# def includes_word(expected, ignore_case=False):
# 
# Path: selene/common/predicate.py
# def is_truthy(something):
# def equals_ignoring_case(expected):
# def equals(expected, ignore_case=False):
# def is_greater_than(expected):
# def is_greater_than_or_equal(expected):
# def is_less_than(expected):
# def is_less_than_or_equal(expected):
# def includes_ignoring_case(expected):
# def includes(expected, ignore_case=False):
#     def fn(actual):
# def includes_word_ignoring_case(expected):
# def includes_word(expected, ignore_case=False):


# Path: tests/unit/common/test_predicate.py
from selene.common.predicate import equals_by_contains_to_list
from selene.common.predicate import equals_to_list

# SOFTWARE.



# noinspection PyPep8Naming
class Test__equals_by_contains_to_list:
    def test_same_size(self):
        expected = ['a']
        actual = ['>a<']
        assert equals_by_contains_to_list(expected)(actual)
        assert not equals_by_contains_to_list(actual)(expected)

    def test_expected_list_is_bigger(self):
        expected = ['a', 'b']
        actual = ['>a<']
        assert not equals_by_contains_to_list(expected)(actual)

    def test_expected_list_is_bigger_and_actual_is_empty(self):
        expected = ['a', 'b']
        actual = []
        assert not equals_by_contains_to_list(expected)(actual)

    def test_expected_list_is_smaller(self):
        expected = ['a']
        actual = ['>a<', '>b<']
        assert not equals_by_contains_to_list(expected)(actual)

    def test_expected_list_is_smaller_and_empty(self):
        expected = []
        actual = ['>a<', '>b<']

        assert not equals_by_contains_to_list(expected)(actual)