def METHOD_NAME(self, mock_module):
    # given
    package = 'py37-conan-1.21.0'
    parseable_flag_not_supported = 1
    mock_module.run_command.side_effect = [
        (parseable_flag_not_supported, "pkgin 0.11.7 for Darwin-18.6.0 x86_64 (using SQLite 3.27.2)", None),
        (0, "%s = C/C++ package manager" % package, None),
    ]
    # when
    command_result = pkgin.query_package(mock_module, package)
    # then
    self.assertEquals(command_result, pkgin.PackageState.PRESENT)