def METHOD_NAME(self, side_effect, exception, shell, Popen):
    Popen.return_value.stdout.read.side_effect = side_effect
    with pytest.raises(exception):
        shell._get_version()
    assert Popen.call_args[0][0] == ['fish', '--version']