Пример #1
0
 def testNumber(self):
     token = tokens.Punctuation(content=u'1980')
     self.assertEqual(token.content, '1980')
Пример #2
0
 def createToken(self, info, parent):
     tokens.Punctuation(parent, content=info[0])
     return parent
Пример #3
0
 def testPunctuation(self):
     token = tokens.Punctuation(content=u'---')
     self.assertEqual(token.content, '---')