Example #1
0
 def test_nickname_8(self):
     name = u'^9|^1E^2R^3E^4N^^|^7'
     try:
         username_with_html_colors(name)
     except:
         self.fail("Failed to parse nickname '{}' to html.\n{}".format(
             name, traceback.format_exc(1)))
Example #2
0
 def test_nickname_7(self):
     name = u'^^''**^7'
     try:
         username_with_html_colors(name)
     except:
         self.fail("Failed to parse nickname '{}' to html.\n{}".format(
             name, traceback.format_exc(1)))
Example #3
0
 def test_nickname_1(self):
     name = u'|^^|GallotoroDBS^7'
     try:
         username_with_html_colors(name)
     except:
         self.fail("Failed to parse nickname '{}' to html.\n{}".format(
             name, traceback.format_exc(1)))
Example #4
0
 def htmlname(self):
     return username_with_html_colors(u'{}'.format(self.name))
Example #5
0
 def htmlname_short(self, maxlen=32):
     if self.longname:
         return username_with_html_colors(u'{}'.format(
             self.longname)[:maxlen])
     return u''
Example #6
0
 def htmlname(self):
     if self.longname:
         return username_with_html_colors(u'{}'.format(self.longname))
     return u''
Example #7
0
 def htmlname(self):
     return username_with_html_colors(u'{}'.format(self.name))
Example #8
0
 def htmlname_short(self, maxlen=32):
     if self.longname:
         return username_with_html_colors(u'{}'.format(self.longname)[:maxlen])
     return u''
Example #9
0
 def htmlname(self):
     if self.longname:
         return username_with_html_colors(u'{}'.format(self.longname))
     return u''
Example #10
0
 def test_nickname_8(self):
     name = u'^9|^1E^2R^3E^4N^^|^7'
     try:
         username_with_html_colors(name)
     except:
         self.fail("Failed to parse nickname '{}' to html.\n{}".format(name, traceback.format_exc(1)))
Example #11
0
 def test_nickname_7(self):
     name = u'^^''**^7'
     try:
         username_with_html_colors(name)
     except:
         self.fail("Failed to parse nickname '{}' to html.\n{}".format(name, traceback.format_exc(1)))
Example #12
0
 def test_nickname_1(self):
     name = u'|^^|GallotoroDBS^7'
     try:
         username_with_html_colors(name)
     except:
         self.fail("Failed to parse nickname '{}' to html.\n{}".format(name, traceback.format_exc(1)))