def test_checkout_should_checkout_correct_branch(mock_git): checkout('a-branch') mock_git.checkout.assert_called_once_with('a-branch')