def METHOD_NAME(self):
    results = run_command("gppkg -q %s" % self.alpha_spec.get_filename())
    self.assertTrue("%s is installed" % self.alpha_spec.get_filename().split('-')[0] in results)
    results = run_command("gppkg --query %s" % self.alpha_spec.get_filename())
    self.assertTrue("%s is installed" % self.alpha_spec.get_filename().split('-')[0] in results)
    self.remove(self.alpha_spec.get_filename())
    results = run_command("gppkg --query %s" % self.alpha_spec.get_filename())
    self.assertTrue("%s is not installed" % self.alpha_spec.get_filename().split('-')[0] in results)
    with self.assertRaises(ExecutionError):
        run_command("gppkg --query abcde")