~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to pybb/tests/postmarkup.py

  • Committer: Holger Rapp
  • Date: 2011-08-24 13:09:49 UTC
  • mto: This revision was merged to the branch mainline in revision 249.
  • Revision ID: sirver@gmx.de-20110824130949-vv0yn4nq3hogq10i
Model.save() should always take args and kwargs and pass them one. Whitespace fixes. Removed dependency on Site being configured on initial run of syncdb

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    def testPlainTest(self):
16
16
        text = 'just a text'
17
17
        self.assertEqual(text, self.markup(text))
18
 
 
 
18
    
19
19
    def testNewLines(self):
20
20
        text = 'just a\n text'
21
21
        self.assertEqual('just a<br/> text', self.markup(text))
22
 
 
 
22
    
23
23
    def testCodeTag(self):
24
24
        text = 'foo [code]foo\nbar[/code] bar'
25
 
        self.assertEqual('foo <pre><code>foo\nbar</code></pre>bar', self.markup(text))
 
25
        self.assertEqual('foo <div class="code"><pre>foo\nbar</pre></div>bar', self.markup(text))
26
26