Esempio n. 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)))
Esempio n. 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)))
Esempio n. 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)))
Esempio n. 4
0
 def htmlname(self):
     return username_with_html_colors(u'{}'.format(self.name))
Esempio n. 5
0
 def htmlname_short(self, maxlen=32):
     if self.longname:
         return username_with_html_colors(u'{}'.format(
             self.longname)[:maxlen])
     return u''
Esempio n. 6
0
 def htmlname(self):
     if self.longname:
         return username_with_html_colors(u'{}'.format(self.longname))
     return u''
Esempio n. 7
0
 def htmlname(self):
     return username_with_html_colors(u'{}'.format(self.name))
Esempio n. 8
0
 def htmlname_short(self, maxlen=32):
     if self.longname:
         return username_with_html_colors(u'{}'.format(self.longname)[:maxlen])
     return u''
Esempio n. 9
0
 def htmlname(self):
     if self.longname:
         return username_with_html_colors(u'{}'.format(self.longname))
     return u''
Esempio n. 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)))
Esempio n. 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)))
Esempio n. 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)))