Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get_transitions():
with pytest.raises(ValueError):
inliner.get_transitions((1, 2, 2), (1, 2, 3))
with pytest.raises(ValueError):
inliner.get_transitions((1, 2), (1, 2, 2))
olds = ("a", "c", "b", "d")
news_1 = ("f", "g", "c", "d", "b", "a")
news_2 = ("c", "d")
assert inliner.get_transitions(olds, news_1) == {0: 5, 1: 2, 2: 4, 3: 3}
assert inliner.get_transitions(olds, news_2) == {1: 0, 3: 1}
def test_get_transitions():
with pytest.raises(ValueError):
inliner.get_transitions((1, 2, 2), (1, 2, 3))
with pytest.raises(ValueError):
inliner.get_transitions((1, 2), (1, 2, 2))
olds = ("a", "c", "b", "d")
news_1 = ("f", "g", "c", "d", "b", "a")
news_2 = ("c", "d")
assert inliner.get_transitions(olds, news_1) == {0: 5, 1: 2, 2: 4, 3: 3}
assert inliner.get_transitions(olds, news_2) == {1: 0, 3: 1}
def test_get_transitions():
with pytest.raises(ValueError):
inliner.get_transitions((1, 2, 2), (1, 2, 3))
with pytest.raises(ValueError):
inliner.get_transitions((1, 2), (1, 2, 2))
olds = ("a", "c", "b", "d")
news_1 = ("f", "g", "c", "d", "b", "a")
news_2 = ("c", "d")
assert inliner.get_transitions(olds, news_1) == {0: 5, 1: 2, 2: 4, 3: 3}
assert inliner.get_transitions(olds, news_2) == {1: 0, 3: 1}