Back to index

moin  1.9.0~rc2
Public Member Functions
test_groups.TestGroupFormatterWikiMarkup Class Reference

List of all members.

Public Member Functions

def get_members
def test_CamelCase
def test_extended_name
def test_extended_link
def test_extended_link_with_label
def test_extended_link_and_text
def test_ignore_not_first_level_list
def test_indented_list
def test_ignore_other
def test_strip_whitespace

Detailed Description

Definition at line 13 of file test_groups.py.


Member Function Documentation

Definition at line 15 of file test_groups.py.

00015 
00016     def get_members(self, text):
00017         request = self.request
00018         formatter = Formatter(self.request)
00019 
00020         become_trusted(request)
00021         create_page(request, u'TestPageGroup', text)
00022         page = Page(request, 'TestPageGroup', formatter=formatter)
00023         page.send_page(content_only=True)
00024         nuke_page(request, u'TestPageGroup')
00025 
00026         return formatter.members

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 27 of file test_groups.py.

00027 
00028     def test_CamelCase(self):
00029         text = """
00030  * CamelCase
00031 """
00032         members = self.get_members(text)
00033         assert len(members) == 1
00034         assert u'CamelCase' in members

Here is the call graph for this function:

Definition at line 43 of file test_groups.py.

00043 
00044     def test_extended_link(self):
00045         text = """
00046  * [[extended link]]
00047 """
00048         members = self.get_members(text)
00049         assert len(members) == 1
00050         assert u'extended link' in members

Here is the call graph for this function:

Definition at line 59 of file test_groups.py.

00059 
00060     def test_extended_link_and_text(self):
00061         text = """
00062  * [[extended link]] other text
00063  * other text [[extended link]]
00064  * other text [[extended link]] other text
00065 
00066 """
00067         members = self.get_members(text)
00068         assert len(members) == 3
00069         assert u'extended link other text' in members
00070         assert u'other text extended link' in members
00071         assert u'other text extended link other text' in members

Here is the call graph for this function:

Definition at line 51 of file test_groups.py.

00051 
00052     def test_extended_link_with_label(self):
00053         text = """
00054  * [[extended link| label]]
00055 """
00056         members = self.get_members(text)
00057         assert len(members) == 1
00058         assert u'extended link' in members

Here is the call graph for this function:

Definition at line 35 of file test_groups.py.

00035 
00036     def test_extended_name(self):
00037         text = """
00038  * extended name
00039 """
00040         members = self.get_members(text)
00041         assert len(members) == 1
00042         assert u'extended name' in members

Here is the call graph for this function:

Definition at line 72 of file test_groups.py.

00072 
00073     def test_ignore_not_first_level_list(self):
00074         text = """
00075  * first level
00076   * second level
00077    * [[SomeLink]]
00078     * forth level
00079      * and then some...
00080  * again first level
00081 """
00082         members = self.get_members(text)
00083         assert len(members) == 2
00084         assert 'first level' in members
00085         assert 'again first level' in members

Here is the call graph for this function:

Definition at line 100 of file test_groups.py.

00100 
00101     def test_ignore_other(self):
00102         text = """
00103 = ignore this =
00104  * take this
00105 
00106 Ignore previous line and this text.
00107 """
00108         members = self.get_members(text)
00109         assert len(members) == 1
00110         assert u'take this' in members

Here is the call graph for this function:

Definition at line 86 of file test_groups.py.

00086 
00087     def test_indented_list(self):
00088         text = """
00089     * first level
00090      * second level
00091       * [[SomeLink|label]]
00092        * forth level
00093         * and then some...
00094     * again first level
00095 """
00096         members = self.get_members(text)
00097         assert len(members) == 2
00098         assert 'first level' in members
00099         assert 'again first level' in members

Here is the call graph for this function:

Definition at line 111 of file test_groups.py.

00111 
00112     def test_strip_whitespace(self):
00113         text = """
00114  *   take this
00115 """
00116         members = self.get_members(text)
00117         assert len(members) == 1
00118         assert u'take this' in members
00119 

Here is the call graph for this function:


The documentation for this class was generated from the following file: