Warning:
Error with navigation contributor "BrowserModule"
| Revision ferringb@gmail.com-20100205073419-gdhx4ykd94jfzwox,
717 bytes
checked in by Brian Harring <ferringb@…>, 7 months ago
(diff) |
|
got gpg dual licensing agreement from marienz via email earlier today, so that completes all folk involved for dual licensing requirements (had the agreements from the rest)- thus pkgcore-checks is now BSD 3 clause or GPL2 for licensing
|
| Line | |
|---|
| 1 | # Copyright: 2006 Brian Harring <ferringb@gmail.com> |
|---|
| 2 | # License: BSD/GPL2 |
|---|
| 3 | |
|---|
| 4 | from pkgcore_checks.test import misc |
|---|
| 5 | from pkgcore_checks.deprecated import DeprecatedEclassReport as dep_eclass |
|---|
| 6 | |
|---|
| 7 | class TestDeprecatedEclass(misc.ReportTestCase): |
|---|
| 8 | |
|---|
| 9 | check_kls = dep_eclass |
|---|
| 10 | |
|---|
| 11 | def mk_pkg(self, ver, eclasses): |
|---|
| 12 | return misc.FakePkg("dev-util/diffball-%s" % ver, |
|---|
| 13 | data={"_eclasses_":{}.fromkeys(eclasses)}) |
|---|
| 14 | |
|---|
| 15 | def test_it(self): |
|---|
| 16 | # single version, shouldn't yield. |
|---|
| 17 | check = dep_eclass(None, None) |
|---|
| 18 | self.assertNoReport(check, self.mk_pkg("0.7.1", [])) |
|---|
| 19 | reports = self.assertReports(check, self.mk_pkg("0.1", |
|---|
| 20 | check.blacklist)) |
|---|
| 21 | self.assertEqual(len(reports), 1) |
|---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: