コード例 #1
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_special_start_of_path_character_with_no_matches():
    paths = ['start.required']
    assert not find_matching_paths('^required', paths)
コード例 #2
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_simple_mismatch():
    paths = ['bar.foo']
    assert not find_matching_paths('foo.bar', paths)
コード例 #3
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_other_mismatch():
    paths = ['foo.0.bar']
    assert not find_matching_paths('foo.0.0.bar', paths)
コード例 #4
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_missing_at_beginning_match():
    paths = ['0.foo.bar']
    assert find_matching_paths('foo.bar', paths)
コード例 #5
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_other_mismatch():
    paths = ['foo.0.bar']
    assert not find_matching_paths('foo.0.0.bar', paths)
コード例 #6
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_special_end_of_path_character_with_match():
    paths = ['start.extra']
    assert find_matching_paths('extra$', paths)
コード例 #7
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_simple_path_match():
    paths = ['foo']
    assert find_matching_paths('foo', paths)
コード例 #8
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_simple_path_match():
    paths = ['foo']
    assert find_matching_paths('foo', paths)
コード例 #9
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_exact_path_match():
    paths = ['foo.bar']
    assert find_matching_paths('foo.bar', paths)
コード例 #10
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_special_end_of_path_character_with_match():
    paths = ['start.extra']
    assert find_matching_paths('extra$', paths)
コード例 #11
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_special_end_of_path_character_should_not_match():
    paths = ['extra.end']
    assert not find_matching_paths('extra$', paths)
コード例 #12
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_embedded_special_chars_should_match():
    paths = ['$ref.extra']
    assert find_matching_paths('$ref', paths)
コード例 #13
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_special_start_of_path_character_with_matches():
    paths = ['required.extra']
    assert find_matching_paths('^required', paths)
コード例 #14
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_special_start_of_path_character_with_no_matches():
    paths = ['start.required']
    assert not find_matching_paths('^required', paths)
コード例 #15
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_special_start_of_path_character_with_matches():
    paths = ['required.extra']
    assert find_matching_paths('^required', paths)
コード例 #16
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_missing_at_beginning_match():
    paths = ['0.foo.bar']
    assert find_matching_paths('foo.bar', paths)
コード例 #17
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_embedded_special_chars_should_match():
    paths = ['$ref.extra']
    assert find_matching_paths('$ref', paths)
コード例 #18
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_missing_at_middle_match():
    paths = ['foo.0.bar']
    assert find_matching_paths('foo.bar', paths)
コード例 #19
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_special_end_of_path_character_should_not_match():
    paths = ['extra.end']
    assert not find_matching_paths('extra$', paths)
コード例 #20
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_missing_at_end_match():
    paths = ['foo.bar.0']
    assert find_matching_paths('foo.bar', paths)
コード例 #21
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_exact_path_match():
    paths = ['foo.bar']
    assert find_matching_paths('foo.bar', paths)
コード例 #22
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_missing_at_end_match():
    paths = ['foo.bar.0']
    assert find_matching_paths('foo.bar', paths)
コード例 #23
0
ファイル: test_assertion_utils.py プロジェクト: wooken/flex
def test_missing_at_middle_match():
    paths = ['foo.0.bar']
    assert find_matching_paths('foo.bar', paths)
コード例 #24
0
ファイル: test_assertion_utils.py プロジェクト: Arable/flex
def test_simple_mismatch():
    paths = ['bar.foo']
    assert not find_matching_paths('foo.bar', paths)