示例#1
0
 def testTripleSingleQuotedString(self):
     manhole.lastColorizedLine("'''1'''")
示例#2
0
 def testFunctionDefinition(self):
     manhole.lastColorizedLine("def foo():")
示例#3
0
文件: test_manhole.py 项目: 0004c/VTK
 def testClassDefinition(self):
     manhole.lastColorizedLine("class foo:")
示例#4
0
 def testDoubleQuoteString(self):
     manhole.lastColorizedLine('"1"')
示例#5
0
文件: test_manhole.py 项目: 0004c/VTK
 def testSingleQuoteString(self):
     manhole.lastColorizedLine("'1'")
示例#6
0
文件: test_manhole.py 项目: 0004c/VTK
 def testTripleDoubleQuotedString(self):
     manhole.lastColorizedLine('"""1"""')
示例#7
0
 def test_unicode(self):
     """
     Colorize a Unicode string.
     """
     res = manhole.lastColorizedLine("\u0438")
     self.assertTrue(isinstance(res, bytes))
示例#8
0
文件: test_manhole.py 项目: 0004c/VTK
 def testInteger(self):
     manhole.lastColorizedLine("1")
示例#9
0
 def test_SingleQuoteString(self):
     """
     Colorize an integer in single quotes.
     """
     manhole.lastColorizedLine("'1'")
示例#10
0
 def test_TripleSingleQuotedString(self):
     """
     Colorize an integer in triple quotes.
     """
     manhole.lastColorizedLine("'''1'''")
示例#11
0
 def test_DoubleQuoteString(self):
     """
     Colorize an integer in double quotes.
     """
     manhole.lastColorizedLine('"1"')
示例#12
0
 def test_Integer(self):
     """
     Colorize an integer.
     """
     manhole.lastColorizedLine("1")
示例#13
0
 def test_ClassDefinition(self):
     """
     Colorize a class definition.
     """
     manhole.lastColorizedLine("class foo:")
示例#14
0
 def test_FunctionDefinition(self):
     """
     Colorize a function definition.
     """
     manhole.lastColorizedLine("def foo():")
示例#15
0
 def test_bytes(self):
     """
     Colorize a UTF-8 byte string.
     """
     res = manhole.lastColorizedLine(b"\xd0\xb8")
     self.assertTrue(isinstance(res, bytes))
示例#16
0
 def test_TripleDoubleQuotedString(self):
     """
     Colorize an integer in triple and double quotes.
     """
     manhole.lastColorizedLine('"""1"""')
示例#17
0
 def test_identicalOutput(self):
     """
     The output of UTF-8 bytestrings and Unicode strings are identical.
     """
     self.assertEqual(manhole.lastColorizedLine(b"\xd0\xb8"),
                      manhole.lastColorizedLine("\u0438"))
示例#18
0
文件: test_manhole.py 项目: 0004c/VTK
 def testDoubleQuoteString(self):
     manhole.lastColorizedLine('"1"')
示例#19
0
 def test_FunctionDefinition(self):
     """
     Colorize a function definition.
     """
     manhole.lastColorizedLine("def foo():")
示例#20
0
文件: test_manhole.py 项目: 0004c/VTK
 def testTripleSingleQuotedString(self):
     manhole.lastColorizedLine("'''1'''")
示例#21
0
 def test_ClassDefinition(self):
     """
     Colorize a class definition.
     """
     manhole.lastColorizedLine("class foo:")
示例#22
0
文件: test_manhole.py 项目: 0004c/VTK
 def testFunctionDefinition(self):
     manhole.lastColorizedLine("def foo():")
示例#23
0
 def test_Integer(self):
     """
     Colorize an integer.
     """
     manhole.lastColorizedLine("1")
示例#24
0
 def testInteger(self):
     manhole.lastColorizedLine("1")
示例#25
0
 def test_DoubleQuoteString(self):
     """
     Colorize an integer in double quotes.
     """
     manhole.lastColorizedLine('"1"')
示例#26
0
 def testSingleQuoteString(self):
     manhole.lastColorizedLine("'1'")
示例#27
0
 def test_SingleQuoteString(self):
     """
     Colorize an integer in single quotes.
     """
     manhole.lastColorizedLine("'1'")
示例#28
0
 def testTripleDoubleQuotedString(self):
     manhole.lastColorizedLine('"""1"""')
示例#29
0
 def test_TripleSingleQuotedString(self):
     """
     Colorize an integer in triple quotes.
     """
     manhole.lastColorizedLine("'''1'''")
示例#30
0
 def testClassDefinition(self):
     manhole.lastColorizedLine("class foo:")
示例#31
0
 def test_TripleDoubleQuotedString(self):
     """
     Colorize an integer in triple and double quotes.
     """
     manhole.lastColorizedLine('"""1"""')