bodhi/tests/test_model.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit e1bb75e9d80556733aac9addc3156452c282f44a
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Nov 11 10:21:48 2008 -0500
Fix a test case
diff --git a/bodhi/tests/test_model.py b/bodhi/tests/test_model.py
index 4acf50a..b654fe8 100644
--- a/bodhi/tests/test_model.py
+++ b/bodhi/tests/test_model.py
@@ -235,7 +235,7 @@ class TestPackageUpdate(testutil.DBTest):
templates = get_template(update)
assert templates
assert templates[0][0] == u'[SECURITY] Fedora 7 Test Update:
TurboGears-1.0.2.2-2.fc7'
- assert templates[0][1] ==
u'--------------------------------------------------------------------------------\nFedora
Test Update
Notification\nFEDORA-2008-0001\nNone\n--------------------------------------------------------------------------------\n\nName
: TurboGears\nProduct : Fedora 7\nVersion : 1.0.2.2\nRelease :
2.fc7\nURL : turbogears.org\nSummary : summary\nDescription
:\ndescription\n\n--------------------------------------------------------------------------------\nUpdate
Information:\n\nfoobar\n--------------------------------------------------------------------------------\nReferences:\n\n
[ 1 ] Bug #1 - None\n
https://bugzilla.redhat.com/show_bug.cgi?id=1\n [ 2 ]
CVE-2007-0000\n
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0000\n--------...
update can be installed with the "yum" update program. Use \nsu -c \'yum
--enablerepo=updates-testing update TurboGears\' at the command line.\nFor more
information, refer to "Managing Software with yum",\navailable at
http://docs.fedoraproject.org/yum/.\n\nAll packages are signed with the Fedora Project GPG
key. More details on the\nGPG keys used by the Fedora Project can be found
at\nhttp://fedoraproject.org/keys\n--------------------------------------...
+ assert templates[0][1] ==
u'--------------------------------------------------------------------------------\nFedora
Test Update
Notification\nFEDORA-2008-0001\nNone\n--------------------------------------------------------------------------------\n\nName
: TurboGears\nProduct : Fedora 7\nVersion : 1.0.2.2\nRelease :
2.fc7\nURL : turbogears.org\nSummary : summary\nDescription
:\ndescription\n\n--------------------------------------------------------------------------------\nUpdate
Information:\n\nfoobar\n--------------------------------------------------------------------------------\nReferences:\n\n
[ 1 ] Bug #1 - None\n
https://bugzilla.redhat.com/show_bug.cgi?id=1\n [ 2 ]
CVE-2007-0000\n
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0000\n--------...
update can be installed with the "yum" update program. Use \nsu -c \'yum
--enablerepo=updates-testing-newkey update TurboGears\' at the command line.\nFor more
information, refer to "Managing Software with yum",\navailable at
http://docs.fedoraproject.org/yum/.\n\nAll packages are signed with the Fedora Project GPG
key. More details on the\nGPG keys used by the Fedora Project can be found
at\nhttp://fedoraproject.org/keys\n--------------------------------------...
def test_latest(self):
update = self.get_update(name='yum-3.2.1-1.fc7')
@@ -424,7 +424,6 @@ class TestPackageUpdate(testutil.DBTest):
log = testutil.get_log()
assert "[old_testing] Nagging foo(a)bar.com about
TurboGears-1.0.2.2-2.fc7" in log
-
def test_old_pending_nagmail(self):
update = self.get_update()
update.status = 'pending'
@@ -495,7 +494,7 @@ class TestPackageUpdate(testutil.DBTest):
templates = get_template(update)
assert templates
assert templates[0][0] == u'[SECURITY] Fedora 7 Test Update:
TurboGears-1.0.2.2-2.fc7'
- assert templates[0][1] ==
u'--------------------------------------------------------------------------------\nFedora
Test Update
Notification\nFEDORA-2008-0001\nNone\n--------------------------------------------------------------------------------\n\nName
: TurboGears\nProduct : Fedora 7\nVersion : 1.0.2.2\nRelease :
2.fc7\nURL : turbogears.org\nSummary : summary\nDescription
:\nZ\u2019s\n\n--------------------------------------------------------------------------------\nUpdate
Information:\n\nfoobar\n--------------------------------------------------------------------------------\nReferences:\n\n
[ 1 ] Bug #1 - None\n
https://bugzilla.redhat.com/show_bug.cgi?id=1\n [ 2 ]
CVE-2007-0000\n
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0000\n--------...
update can be installed with the "yum" update program. Use \nsu -c \'yum
--enablerepo=updates-testing update TurboGears\' at the command line.\nFor more
information, refer to "Managing Software with yum",\navailable at
http://docs.fedoraproject.org/yum/.\n\nAll packages are signed with the Fedora Project GPG
key. More details on the\nGPG keys used by the Fedora Project can be found
at\nhttp://fedoraproject.org/keys\n--------------------------------------...
+ assert templates[0][1] ==
u'--------------------------------------------------------------------------------\nFedora
Test Update
Notification\nFEDORA-2008-0001\nNone\n--------------------------------------------------------------------------------\n\nName
: TurboGears\nProduct : Fedora 7\nVersion : 1.0.2.2\nRelease :
2.fc7\nURL : turbogears.org\nSummary : summary\nDescription
:\nZ\u2019s\n\n--------------------------------------------------------------------------------\nUpdate
Information:\n\nfoobar\n--------------------------------------------------------------------------------\nReferences:\n\n
[ 1 ] Bug #1 - None\n
https://bugzilla.redhat.com/show_bug.cgi?id=1\n [ 2 ]
CVE-2007-0000\n
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0000\n--------...
update can be installed with the "yum" update program. Use \nsu -c \'yum
--enablerepo=updates-testing-newkey update TurboGears\' at the command line.\nFor more
information, refer to "Managing Software with yum",\navailable at
http://docs.fedoraproject.org/yum/.\n\nAll packages are signed with the Fedora Project GPG
key. More details on the\nGPG keys used by the Fedora Project can be found
at\nhttp://fedoraproject.org/keys\n--------------------------------------...
class TestBugzilla(testutil.DBTest):