Example #1
0
def test_strip_prefix_from_string_only_if_it_exists():
    assert strip_prefix('baz', 'foobar') == 'foobar'
Example #2
0
def test_strip_prefix_from_string():
    assert strip_prefix('foo', 'foobar') == 'bar'