예제 #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"""')