Пример #1
0
def test_parse_method_path_with_package():
    method_path = "/package.service/method"
    parsed = utils.parse_method_path(method_path)
    assert parsed == ("package", "service", "method")
Пример #2
0
def test_parse_method_path_with_package():
    method_path = '/package.service/method'
    parsed = parse_method_path(method_path)
    assert parsed == ('package', 'service', 'method')
Пример #3
0
def test_parse_method_path_without_package():
    method_path = '/service/method'
    parsed = parse_method_path(method_path)
    assert parsed == (None, 'service', 'method')
Пример #4
0
def test_parse_method_path_without_package():
    method_path = "/service/method"
    parsed = parse_method_path(method_path)
    assert parsed == (None, "service", "method")