public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/tests/
Date: Mon,  9 Jan 2012 16:09:25 +0000 (UTC)	[thread overview]
Message-ID: <80949d974663e453275d3f6a33ade7b1cccde15f.mgorny@gentoo> (raw)

commit:     80949d974663e453275d3f6a33ade7b1cccde15f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  9 16:09:04 2012 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan  9 16:09:04 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=80949d97

Add a test for USEflag listing.

---
 gentoopm/tests/__init__.py |    3 +++
 gentoopm/tests/pkg.py      |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gentoopm/tests/__init__.py b/gentoopm/tests/__init__.py
index 3d35562..8b1df9e 100644
--- a/gentoopm/tests/__init__.py
+++ b/gentoopm/tests/__init__.py
@@ -75,6 +75,9 @@ class PackageNames(object):
 	single_complete = 'app-shells/bash'
 	""" Complete atom matching a single package. """
 
+	single_use = 'nls'
+	""" A USEflag which should be available on the package above. """
+
 	multiple = 'pms'
 	""" Incomplete atom matching multiple packages. """
 

diff --git a/gentoopm/tests/pkg.py b/gentoopm/tests/pkg.py
index a5069ab..8e6697f 100644
--- a/gentoopm/tests/pkg.py
+++ b/gentoopm/tests/pkg.py
@@ -92,5 +92,11 @@ class PackagesTestCase(PMTestCase):
 		f = next(iter(p.contents))
 		self.assertTrue(f in p.contents)
 
+	def test_use(self):
+		""" Test .use. """
+		p = self._inst_pkg
+		fl = PackageNames.single_use
+		self.assertTrue(fl in p.use)
+
 	def tearDown(self):
 		pass



             reply	other threads:[~2012-01-09 16:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 16:09 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-29  8:57 [gentoo-commits] proj/gentoopm:master commit in: gentoopm/tests/ Michał Górny
2014-11-29  8:57 Michał Górny
2014-11-29  8:57 Michał Górny
2012-12-10 20:58 Michał Górny
2012-12-10 17:36 Michał Górny
2011-12-09 15:09 Michał Górny
2011-07-25 17:06 Michał Górny
2011-07-20  9:41 Michał Górny
2011-07-19  9:56 Michał Górny
2011-07-19  9:56 Michał Górny
2011-07-17 22:19 Michał Górny
2011-07-15 13:32 Michał Górny
2011-07-15 13:32 Michał Górny
2011-07-15 12:34 Michał Górny
2011-07-15  9:52 Michał Górny
2011-07-15  9:52 Michał Górny
2011-07-15  9:52 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80949d974663e453275d3f6a33ade7b1cccde15f.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox