@@ -0,0 +1,1282 @@
+%22%22%22Tests for prompt generation.%22%22%22%0A%0Aimport unittest%0A%0Aimport nose.tools as nt%0A%0Afrom IPython.testing import tools as tt, decorators as dec%0Afrom IPython.core.prompts import PromptManager%0Afrom IPython.testing.globalipapp import get_ipython%0A%0Aip = get_ipython()%0A%0A%0Aclass PromptTests(unittest.TestCase):%0A    def setUp(self):%0A        self.pm = PromptManager(shell=ip, config=ip.config)%0A    %0A    def test_multiline_prompt(self):%0A        self.pm.in_template = %22%5BIn%5D%5Cn%3E%3E%3E%22%0A        self.pm.render('in')%0A        self.assertEqual(self.pm.width, 3)%0A        self.assertEqual(self.pm.txtwidth, 3)%0A        %0A        self.pm.in_template = '%5BIn%5D%5Cn'%0A        self.pm.render('in')%0A        self.assertEqual(self.pm.width, 0)%0A        self.assertEqual(self.pm.txtwidth, 0)%0A    %0A    def test_translate_abbreviations(self):%0A        def do_translate(template):%0A            self.pm.in_template = template%0A            return self.pm.templates%5B'in'%5D%0A        %0A        pairs = %5B(r'%25n%3E', '%7Bcolor.number%7D%7Bcount%7D%7Bcolor.prompt%7D%3E'),%0A                 (r'%5CT', '%7Btime%7D'),%0A                 (r'%5Cn', '%5Cn')%0A                %5D%0A    %0A        tt.check_pairs(do_translate, pairs)%0A    %0A    def test_render(self):%0A        self.pm.in_template = r'%5C#%3E'%0A        self.assertEqual(self.pm.render('in',color=False), '%25d%3E' %25 ip.execution_count)%0A

Add tests for prompt system.