Lines Matching defs:api
40 import pkg.client.api as api
123 states = [api.PackageInfo.KNOWN]
125 states.append(api.PackageInfo.INSTALLED)
129 states.append(api.PackageInfo.UPGRADABLE)
133 states.append(api.PackageInfo.UPGRADABLE)
138 states.append(api.PackageInfo.UPGRADABLE)
140 states.append(api.PackageInfo.RENAMED)
142 states.append(api.PackageInfo.OBSOLETE)
147 states.append(api.PackageInfo.UPGRADABLE)
149 states.append(api.PackageInfo.RENAMED)
154 states.append(api.PackageInfo.UPGRADABLE)
302 newest = pkg_list == api.ImageInterface.LIST_NEWEST
370 exp_states = set([api.PackageInfo.FROZEN,
371 api.PackageInfo.INCORPORATED, api.PackageInfo.EXCLUDES,
372 api.PackageInfo.KNOWN, api.PackageInfo.INSTALLED,
373 api.PackageInfo.UPGRADABLE, api.PackageInfo.OBSOLETE,
374 api.PackageInfo.RENAMED])
384 # Eliminate states not exposed by the api.
479 self.__test_list(api.ImageInterface.LIST_ALL, api_obj=api_obj,
487 self.__test_list(api.ImageInterface.LIST_NEWEST,
573 self.__test_list(api.ImageInterface.LIST_ALL,
594 self.__test_list(api.ImageInterface.LIST_ALL,