def _matches(actual): from hamcrest.core import assert_that as hamcrest_assert from hamcrest.library.collection import contains_inanyorder expected_list = list(expected) hamcrest_assert(actual, contains_inanyorder(*expected_list))
def _matches(actual): expected_list = list(expected) hamcrest_assert(actual, contains_inanyorder(*expected_list))