Exemplo n.º 1
0
 def test_with_unicode(self, _, __):
     """Test simple output, with Unicode support !"""
     output = Terminal().value
     self.assertTrue(output.startswith('TERMINAL '))
     self.assertEqual(output.count('\u2588'), 7 * 2)
Exemplo n.º 2
0
 def test_not_detected(self, _, __):
     """Test simple output, with Unicode support !"""
     output = Terminal().value
     self.assertTrue(output.startswith('Not detected '))
     self.assertEqual(output.count('#'), 7 * 2)
Exemplo n.º 3
0
 def test_without_unicode(self, _, __):
     """Test simple output, without Unicode support (default)"""
     output = Terminal().value
     self.assertTrue(output.startswith('TERMINAL '))
     self.assertEqual(output.count('#'), 7 * 2)