def test_files_set_with_leading_as_trailing_mismatch(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', ['a', {'x', 'y'}], ['x', 'y', 'a'])
def test_files_empty_empty_passes(): tc_check_files(ps(), 'CMD', [], [])
def test_files_set_with_trailing_match(): tc_check_files(ps(), 'CMD', [{'x', 'y'}, 'a'], ['x', 'y', 'a'])
def test_files_set_with_trailing_mismatch(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', [{'x', 'y'}, 'a'], ['x', 'y', 'b'])
def test_files_regex_match_succeeds(): tc_check_files(ps(), 'CMD', [rxc(r'ab+c')], ['abbbc'])
def test_files_set_with_leading_match(): tc_check_files(ps(), 'CMD', ['a', {'x', 'y'}], ['a', 'x', 'y'])
def test_files_singleton_set_mismatch(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', [{'x'}], ['y'])
def test_files_text_lengthy_match_succeeds(): tc_check_files(ps(), 'CMD', ['a', 'b'], ['a', 'b'])
def test_files_callable_trailing_mismatch_fails(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', ['x', lambda x: len(x) == 5], ['y', 'b'])
def test_files_singleton_set_match(): tc_check_files(ps(), 'CMD', [{'x'}], ['x'])
def test_files_callable_trailing_match_succeeds(): tc_check_files(ps(), 'CMD', ['x', lambda x: len(x) == 5], ['x', 'abbbc'])
def test_files_regex_trailing_mismatch_fails(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', ['x', rxc(r'ab+c')], ['y', 'b'])
def test_files_regex_trailing_match_succeeds(): tc_check_files(ps(), 'CMD', ['x', rxc(r'ab+c')], ['x', 'abbbc'])
def test_files_nonempty_empty_fails(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', ['whoops'], [])
def test_files_double_set_match(): tc_check_files(ps(), 'CMD', [{'x', 'y'}], ['x', 'y'])
def test_files_text_match_succeeds(): tc_check_files(ps(), 'CMD', ['a'], ['a'])
def test_files_double_set_mismatch(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', [{'x', 'y'}], ['a', 'y'])
def test_files_text_lengthy_mismatch_fails(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', ['b', 'a'], ['a', 'b'])
def test_files_text_overlong_actual_fails(): with pytest.raises(TF): tc_check_files(ps(), 'CMD', ['a', 'b'], ['a', 'b', 'c'])