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)
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)
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)