Example #1
0
def test_getrevish_implicit():
    with patch("tools.wpt.testfiles.branch_point", return_value=u"base"):
        assert testfiles.get_revish() == b"base..HEAD"
Example #2
0
def test_getrevish_kwarg():
    assert testfiles.get_revish(revish=u"abcdef") == b"abcdef"
    assert testfiles.get_revish(revish=b"abcdef") == b"abcdef"
Example #3
0
def test_getrevish_kwarg():
    assert testfiles.get_revish(revish="abcdef") == "abcdef"
    assert testfiles.get_revish(revish="123456\n") == "123456"