Back to index

plone3  3.1.7
Variables
CMFCore.tests.base.content Namespace Reference

Variables

string DOCTYPE = '''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'''
string HTML_TEMPLATE
string SIMPLE_HTML
string BASIC_HTML
string SIMPLE_XHTML
string FAUX_HTML_LEADING_TEXT
string ENTITY_IN_TITLE
string SIMPLE_STRUCTUREDTEXT
string BASIC_STRUCTUREDTEXT
string STX_WITH_HTML
string STX_NO_HEADERS
string STX_NO_HEADERS_BUT_COLON
string BASIC_RFC822
string RFC822_W_CONTINUATION

Variable Documentation

Initial value:
00001 '''\
00002 <html>
00003  <head>
00004   <title>Title in tag</title>
00005   <meta name="description" content="Describe me">
00006   <meta name="contributors" content="foo@bar.com; baz@bam.net;
00007     Benotz, Larry J (larry@benotz.stuff)">
00008   <meta name="title" content="Title in meta">
00009   <meta name="subject" content="content management">
00010   <meta name="keywords" content="unit tests, framework; ,zope ">
00011  </head>
00012  <body bgcolor="#ffffff">
00013   <h1>Not a lot here</h1>
00014  </body>
00015 </html>
00016 '''

Definition at line 27 of file content.py.

Initial value:
00001 """\
00002 Title: Zope Community
00003 Description: Link to the Zope Community website.
00004 Subject: open source; Zope; community
00005 
00006 http://www.zope.org
00007 """

Definition at line 159 of file content.py.

Initial value:
00001 '''\
00002 Title: My Document
00003 Description: A document by me
00004 Contributors: foo@bar.com; baz@bam.net; no@yes.maybe
00005 Subject: content management, zope
00006 Keywords: unit tests; , framework
00007 
00008 This is the header
00009 
00010   Body body body body body
00011   body body body.
00012 
00013    o A list item
00014 
00015    o And another thing...
00016 '''

Definition at line 111 of file content.py.

string CMFCore.tests.base.content.DOCTYPE = '''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'''

Definition at line 1 of file content.py.

Initial value:
00001 '''\
00002 <html>
00003  <head>
00004   <title>&Auuml;rger</title>
00005  </head>
00006  <bOdY>
00007   <h2>Not a lot here either</h2>
00008  </bodY>
00009 </html>
00010 '''

Definition at line 84 of file content.py.

Initial value:
00001 '''\
00002 The following would look like HTML but for this leading text:
00003 
00004 <html>
00005  <head>
00006   <title>Title in tag</title>
00007   <meta name="description" content="Describe me">
00008   <meta name="contributors" content="foo@bar.com; baz@bam.net;
00009     Benotz, Larry J (larry@benotz.stuff)">
00010   <meta name="title" content="Title in meta">
00011   <meta name="subject" content="content management">
00012   <meta name="keywords" content="unit tests, framework; ,zope ">
00013  </head>
00014  <body bgcolor="#ffffff">
00015   <h1>Not a lot here</h1>
00016  </body>
00017 </html>
00018 '''

Definition at line 65 of file content.py.

Initial value:
00001 '''\
00002 <html><head>
00003  <title>%(title)s</title>
00004 </head>
00005 <body bgcolor="#efe843">%(body)s</body>
00006 </html>
00007 '''

Definition at line 3 of file content.py.

Initial value:
00001 """\
00002 Title: Zope Community
00003 Description: Link to the Zope Community website,
00004   including hundreds of contributed Zope products.
00005 Subject: open source; Zope; community
00006 
00007 http://www.zope.org
00008 """

Definition at line 167 of file content.py.

Initial value:
00001 '''\
00002 <html>
00003  <head>
00004   <title>Title in tag</title>
00005   <meta name="description" content="Describe me">
00006   <meta name="contributors" content="foo@bar.com; baz@bam.net;
00007     Benotz, Larry J (larry@benotz.stuff)">
00008   <meta name="title" content="Title in meta">
00009   <meta name="subject" content="content management">
00010  </head>
00011  <body bgcolor="#ffffff">
00012   <h1>Not a lot here</h1>
00013  </body>
00014 </html>
00015 '''

Definition at line 11 of file content.py.

Initial value:
00001 '''\
00002 Title: My Document
00003 Description: A document by me
00004 Contributors: foo@bar.com; baz@bam.net; no@yes.maybe
00005 Subject: content management, zope
00006 
00007 This is the header
00008 
00009   Body body body body body
00010   body body body.
00011 
00012    o A list item
00013 
00014    o And another thing...
00015 '''

Definition at line 95 of file content.py.

Initial value:
00001 """\
00002 <?xml version="1.0" encoding="UTF-8"?>
00003 <!DOCTYPE html
00004     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
00005     "DTD/xhtml1-transitional.dtd">
00006 <html xmlns="http://www.w3.org/1999/xhtml">
00007  <head>
00008   <title>Title in tag</title>
00009   <meta name="description" content="Describe me" />
00010   <meta name="contributors" content="foo@bar.com; baz@bam.net;
00011     Benotz, Larry J (larry@benotz.stuff)" />
00012   <meta name="title" content="Title in meta" />
00013   <meta name="subject" content="content management" />
00014  </head>
00015  <body bgcolor="#ffffff">
00016   <h1>Not a lot here</h1>
00017  </body>
00018 </html>
00019 """

Definition at line 44 of file content.py.

Initial value:
00001 """\
00002 Title Phrase
00003 
00004     This is a "plain" STX file, with no headers.  Saving with
00005     it shouldn't overwrite any metadata.
00006 """

Definition at line 145 of file content.py.

Initial value:
00001 """\
00002 Plain STX:  No magic!
00003 
00004     This is a "plain" STX file, with no headers.  Saving with
00005     it shouldn't overwrite any metadata.
00006 """

Definition at line 152 of file content.py.

Initial value:
00001 """\
00002 Sometimes people do interesting things
00003 
00004   Sometimes people do interesting things like have examples
00005   of HTML inside their structured text document.  We should
00006   be detecting that this is indeed a structured text document
00007   and **NOT** an HTML document::
00008 
00009     <html>
00010     <head><title>Hello World</title></head>
00011     <body><p>Hello world, I am Bruce.</p></body>
00012     </html>
00013 
00014   All in favor say pi!
00015 """

Definition at line 128 of file content.py.