Пример #1
0
 def checkSafing12(self):
     self.assertEqual(preppy.uStdQuote(preppy.SafeString(u'<A>')), u'<A>')
Пример #2
0
def bb2rml(text):
    return preppy.SafeString(
        xhtml2rml(cleanBlocks(bbcode.render_html(text)),
                  ulStyle="normal_ul",
                  olStyle="normal_ol"))
Пример #3
0
 def checkSafing10(self):
     self.assertEqual(preppy.bStdQuote(preppy.SafeString(u'<A>')), b'<A>')
Пример #4
0
 def checkSafing6(self):
     self.assertEqual(
         preppy.SafeString(u'<A>').__class__.__name__, 'SafeUnicode')
Пример #5
0
 def checkSafing5(self):
     self.assertEqual(
         preppy.SafeString(b'<A>').__class__.__name__, 'SafeString')
Пример #6
0
 def checkSafing2(self):
     self.assertEqual(preppy.SafeString(u'<A>'), u'<A>')
Пример #7
0
 def checkSafing1(self):
     self.assertEqual(preppy.SafeString(b'<A>'), b'<A>')