Exemplo n.º 1
0
 def testTripleSingleQuotedString(self):
     manhole.lastColorizedLine("'''1'''")
Exemplo n.º 2
0
 def testFunctionDefinition(self):
     manhole.lastColorizedLine("def foo():")
Exemplo n.º 3
0
 def testClassDefinition(self):
     manhole.lastColorizedLine("class foo:")
Exemplo n.º 4
0
 def testDoubleQuoteString(self):
     manhole.lastColorizedLine('"1"')
Exemplo n.º 5
0
 def testSingleQuoteString(self):
     manhole.lastColorizedLine("'1'")
Exemplo n.º 6
0
 def testTripleDoubleQuotedString(self):
     manhole.lastColorizedLine('"""1"""')
Exemplo n.º 7
0
 def test_unicode(self):
     """
     Colorize a Unicode string.
     """
     res = manhole.lastColorizedLine("\u0438")
     self.assertTrue(isinstance(res, bytes))
Exemplo n.º 8
0
 def testInteger(self):
     manhole.lastColorizedLine("1")
Exemplo n.º 9
0
 def test_SingleQuoteString(self):
     """
     Colorize an integer in single quotes.
     """
     manhole.lastColorizedLine("'1'")
Exemplo n.º 10
0
 def test_TripleSingleQuotedString(self):
     """
     Colorize an integer in triple quotes.
     """
     manhole.lastColorizedLine("'''1'''")
Exemplo n.º 11
0
 def test_DoubleQuoteString(self):
     """
     Colorize an integer in double quotes.
     """
     manhole.lastColorizedLine('"1"')
Exemplo n.º 12
0
 def test_Integer(self):
     """
     Colorize an integer.
     """
     manhole.lastColorizedLine("1")
Exemplo n.º 13
0
 def test_ClassDefinition(self):
     """
     Colorize a class definition.
     """
     manhole.lastColorizedLine("class foo:")
Exemplo n.º 14
0
 def test_FunctionDefinition(self):
     """
     Colorize a function definition.
     """
     manhole.lastColorizedLine("def foo():")
Exemplo n.º 15
0
 def test_bytes(self):
     """
     Colorize a UTF-8 byte string.
     """
     res = manhole.lastColorizedLine(b"\xd0\xb8")
     self.assertTrue(isinstance(res, bytes))
Exemplo n.º 16
0
 def test_TripleDoubleQuotedString(self):
     """
     Colorize an integer in triple and double quotes.
     """
     manhole.lastColorizedLine('"""1"""')
Exemplo n.º 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"))
Exemplo n.º 18
0
 def testDoubleQuoteString(self):
     manhole.lastColorizedLine('"1"')
Exemplo n.º 19
0
 def test_FunctionDefinition(self):
     """
     Colorize a function definition.
     """
     manhole.lastColorizedLine("def foo():")
Exemplo n.º 20
0
 def testTripleSingleQuotedString(self):
     manhole.lastColorizedLine("'''1'''")
Exemplo n.º 21
0
 def test_ClassDefinition(self):
     """
     Colorize a class definition.
     """
     manhole.lastColorizedLine("class foo:")
Exemplo n.º 22
0
 def testFunctionDefinition(self):
     manhole.lastColorizedLine("def foo():")
Exemplo n.º 23
0
 def test_Integer(self):
     """
     Colorize an integer.
     """
     manhole.lastColorizedLine("1")
Exemplo n.º 24
0
 def testInteger(self):
     manhole.lastColorizedLine("1")
Exemplo n.º 25
0
 def test_DoubleQuoteString(self):
     """
     Colorize an integer in double quotes.
     """
     manhole.lastColorizedLine('"1"')
Exemplo n.º 26
0
 def testSingleQuoteString(self):
     manhole.lastColorizedLine("'1'")
Exemplo n.º 27
0
 def test_SingleQuoteString(self):
     """
     Colorize an integer in single quotes.
     """
     manhole.lastColorizedLine("'1'")
Exemplo n.º 28
0
 def testTripleDoubleQuotedString(self):
     manhole.lastColorizedLine('"""1"""')
Exemplo n.º 29
0
 def test_TripleSingleQuotedString(self):
     """
     Colorize an integer in triple quotes.
     """
     manhole.lastColorizedLine("'''1'''")
Exemplo n.º 30
0
 def testClassDefinition(self):
     manhole.lastColorizedLine("class foo:")
Exemplo n.º 31
0
 def test_TripleDoubleQuotedString(self):
     """
     Colorize an integer in triple and double quotes.
     """
     manhole.lastColorizedLine('"""1"""')