[CMF-checkins] CVS: CMF - test_Document.py:1.7
Jeffrey Shell
jeffrey@digicool.com
Thu, 31 May 2001 20:22:15 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/tests
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault/tests
Modified Files:
test_Document.py
Log Message:
Added tests in test_BasicHtml() for Subject/Keywords meta tags being
picked up into the dublin core properly.
--- Updated File test_Document.py in package CMF --
--- test_Document.py 2001/05/25 02:24:18 1.6
+++ test_Document.py 2001/06/01 00:22:14 1.7
@@ -10,6 +10,8 @@
<meta name="description" content="Describe me">
<meta name="contributors" content="foo@bar.com baz@bam.net">
<meta name="title" content="Title in meta">
+ <meta name="subject" content="content management">
+ <meta name="keywords" content="unit tests, framework; ,zope ">
</head>
<body bgcolor="#ffffff">
<h1>Not a lot here</h1>
@@ -75,6 +77,16 @@
assert string.find(d.text, '</body>') == -1
assert d.Description() == 'Describe me'
assert len(d.Contributors()) == 2
+
+ subj = list(d.Subject())
+ assert len(subj) == 4
+ subj.sort()
+ assert subj == [
+ 'content management',
+ 'framework',
+ 'unit tests',
+ 'zope'
+ ]
def test_UpperedHtml(self):
d = Document('foo')