PkgInfo: update tests

This commit is contained in:
James Lu 2014-11-27 16:54:09 -08:00
parent 171ef055c9
commit ee2e2ecb2e

View File

@ -35,9 +35,9 @@ class PkgInfoTestCase(PluginTestCase):
plugins = ('PkgInfo',)
def testPkgCommand(self):
self.assertRegexp('pkg sid bash', 'Package: .*?bash'
' .*?; View more at: .*?packages.debian.org/sid/bash')
' .*?')
self.assertRegexp('pkg trusty apt', 'Package: .*?apt'
' .*?; View more at: .*?packages.ubuntu.com/trusty/apt')
' .*?')
self.assertError('pkg afdsfsadf asfasfasf')
self.assertRegexp('pkg sid afsadfasfsa', 'no such package', re.I)