Package CMFCore :: Package tests :: Package base :: Module content
[show private | hide private]
[frames | no frames]

Module CMFCore.tests.base.content

Variable Summary
str BASIC_HTML = '<html>\n <head>\n  <title>Title in tag</ti...
str BASIC_RFC822 = 'Title: Zope Community\nDescription: Link...
str BASIC_STRUCTUREDTEXT = 'Title: My Document\nDescription:...
str DOCTYPE = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 ...
str ENTITY_IN_TITLE = '<html>\n <head>\n  <title>&Auuml;rger...
str FAUX_HTML_LEADING_TEXT = 'The following would look like ...
str HTML_TEMPLATE = '<html><head>\n <title>%(title)s</title>...
str RFC822_W_CONTINUATION = 'Title: Zope Community\nDescript...
str SIMPLE_HTML = '<html>\n <head>\n  <title>Title in tag</t...
str SIMPLE_STRUCTUREDTEXT = 'Title: My Document\nDescription...
str SIMPLE_XHTML = '<?xml version="1.0" encoding="UTF-8"?>\n...
str STX_NO_HEADERS = 'Title Phrase\n\n    This is a "plain" ...
str STX_NO_HEADERS_BUT_COLON = 'Plain STX:  No magic!\n\n   ...
str STX_WITH_HTML = 'Sometimes people do interesting things\...

Variable Details

BASIC_HTML

Type:
str
Value:
'''<html>
 <head>
  <title>Title in tag</title>
  <meta name="description" content="Describe me">
  <meta name="contributors" content="foo@bar.com; baz@bam.net;
    Benotz, Larry J (larry@benotz.stuff)">
  <meta name="title" content="Title in meta">
  <meta name="subject" content="content management">
...                                                                    

BASIC_RFC822

Type:
str
Value:
'''Title: Zope Community
Description: Link to the Zope Community website.
Subject: open source; Zope; community

http://www.zope.org
'''                                                                    

BASIC_STRUCTUREDTEXT

Type:
str
Value:
'''Title: My Document
Description: A document by me
Contributors: foo@bar.com; baz@bam.net; no@yes.maybe
Subject: content management, zope
Keywords: unit tests; , framework

This is the header

...                                                                    

DOCTYPE

Type:
str
Value:
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:\
//www.w3.org/TR/html4/loose.dtd">'                                     

ENTITY_IN_TITLE

Type:
str
Value:
'''<html>
 <head>
  <title>&Auuml;rger</title>
 </head>
 <bOdY>
  <h2>Not a lot here either</h2>
 </bodY>
</html>
...                                                                    

FAUX_HTML_LEADING_TEXT

Type:
str
Value:
'''The following would look like HTML but for this leading text:

<html>
 <head>
  <title>Title in tag</title>
  <meta name="description" content="Describe me">
  <meta name="contributors" content="foo@bar.com; baz@bam.net;
    Benotz, Larry J (larry@benotz.stuff)">
...                                                                    

HTML_TEMPLATE

Type:
str
Value:
'''<html><head>
 <title>%(title)s</title>
</head>
<body bgcolor="#efe843">%(body)s</body>
</html>
'''                                                                    

RFC822_W_CONTINUATION

Type:
str
Value:
'''Title: Zope Community
Description: Link to the Zope Community website,
  including hundreds of contributed Zope products.
Subject: open source; Zope; community

http://www.zope.org
'''                                                                    

SIMPLE_HTML

Type:
str
Value:
'''<html>
 <head>
  <title>Title in tag</title>
  <meta name="description" content="Describe me">
  <meta name="contributors" content="foo@bar.com; baz@bam.net;
    Benotz, Larry J (larry@benotz.stuff)">
  <meta name="title" content="Title in meta">
  <meta name="subject" content="content management">
...                                                                    

SIMPLE_STRUCTUREDTEXT

Type:
str
Value:
'''Title: My Document
Description: A document by me
Contributors: foo@bar.com; baz@bam.net; no@yes.maybe
Subject: content management, zope

This is the header

  Body body body body body
...                                                                    

SIMPLE_XHTML

Type:
str
Value:
'''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Title in tag</title>
  <meta name="description" content="Describe me" />
...                                                                    

STX_NO_HEADERS

Type:
str
Value:
'''Title Phrase

    This is a "plain" STX file, with no headers.  Saving with
    it shouldn\'t overwrite any metadata.
'''                                                                    

STX_NO_HEADERS_BUT_COLON

Type:
str
Value:
'''Plain STX:  No magic!

    This is a "plain" STX file, with no headers.  Saving with
    it shouldn\'t overwrite any metadata.
'''                                                                    

STX_WITH_HTML

Type:
str
Value:
'''Sometimes people do interesting things

  Sometimes people do interesting things like have examples
  of HTML inside their structured text document.  We should
  be detecting that this is indeed a structured text document
  and **NOT** an HTML document::

    <html>
...                                                                    

Generated by Epydoc 2.1 on Wed Nov 30 03:59:28 2005 http://epydoc.sf.net