From 83c0d344bf9534e87c236be55a9912b6b18d1996 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 24 Oct 2003 11:47:00 +0000 Subject: [PATCH] Changed to match the new behavior of assertError. --- test/test_Debian.py | 2 -- test/test_Factoids.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/test_Debian.py b/test/test_Debian.py index 3fcc6dc7e..c5ade0212 100644 --- a/test/test_Debian.py +++ b/test/test_Debian.py @@ -58,7 +58,6 @@ class DebianTestCase(PluginTestCase, PluginDocumentation): pass def testDebversion(self): - self.assertNotError('version') self.assertRegexp('version lakjdfad', r'^No package.*\(all\)') self.assertRegexp('version unstable alkdjfad', r'^No package.*\(unstable\)') @@ -68,7 +67,6 @@ class DebianTestCase(PluginTestCase, PluginDocumentation): def testDebfile(self): if not self.fileDownloaded: pass - self.assertNotError('file') self.assertRegexp('file --exact bin/gaim', r'net/gaim') def testDebincoming(self): diff --git a/test/test_Factoids.py b/test/test_Factoids.py index e76897378..e7ca071a1 100644 --- a/test/test_Factoids.py +++ b/test/test_Factoids.py @@ -73,8 +73,8 @@ if sqlite is not None: self.assertError('whatis foo bar') self.assertError('info foo bar') - self.assertRegexp('learn foo bar baz', '^learn') # No 'as' - self.assertRegexp('learn foo bar', '^learn') # No 'as' + self.assertError('learn foo bar baz') # No 'as' + self.assertError('learn foo bar') # No 'as' def testSearchFactoids(self): self.assertNotError('learn jemfinch as my primary author')