def test_get_commit_links_from_yaml_is_sorted():
    ret = _get_commit_links_from_yaml({'a': '1', 'b': '2', 'c': '3', 'd': '4'})
    assert ret == (('a', '1'), ('b', '2'), ('c', '3'), ('d', '4'))
def test_get_commit_links_from_yaml_one_entry():
    assert _get_commit_links_from_yaml({'foo': 'bar'}) == (('foo', 'bar'),)
def test_get_commit_links_from_yaml_empty():
    assert _get_commit_links_from_yaml({}) == ()
Пример #4
0
def test_get_commit_links_from_yaml_is_sorted():
    ret = _get_commit_links_from_yaml({'a': '1', 'b': '2', 'c': '3', 'd': '4'})
    assert ret == (('a', '1'), ('b', '2'), ('c', '3'), ('d', '4'))
Пример #5
0
def test_get_commit_links_from_yaml_one_entry():
    assert _get_commit_links_from_yaml({'foo': 'bar'}) == (('foo', 'bar'), )
Пример #6
0
def test_get_commit_links_from_yaml_empty():
    assert _get_commit_links_from_yaml({}) == ()