def test_is_cpython_repo_contains_first_cpython_commit(subprocess_check_output): mock_output = b"""commit 7f777ed95a19224294949e1b4ce56bbffcb1fe9f Author: Guido van Rossum <*****@*****.**> Date: Thu Aug 9 14:25:15 1990 +0000 Initial revision""" subprocess_check_output.return_value = mock_output assert util.is_cpython_repo()
def test_is_not_cpython_repo(): assert util.is_cpython_repo() == False