def testBasic(self):
     """See if it works at all"""
     for repl in ['python', 'sage']:
         try:
             runrepl._feed_lines(self.lines, repl, 'dummy_filename')
         except Exception, e:
             self.fail(str(e))
 def testBasic(self):
     """See if it works at all"""
     for repl in ["python", "sage"]:
         try:
             runrepl._feed_lines(self.lines, repl, "dummy_filename")
         except Exception, e:
             self.fail(str(e))
 def testError(self):
     """See if it works when the repl raises an error"""
     lines = ['a']
     for repl in ['python', 'sage']:
         try:
             runrepl._feed_lines(lines, repl, 'dummy_filename')
         except Exception, e:
             self.fail(str(e))
 def testContinuationPrompt(self):
     """See if the '...' prompt works at all"""
     lines = ['for i in range(9):', '    print str(i)', '', '2+3']
     for repl in ['python', 'sage']:
         try:
             runrepl._feed_lines(lines, repl, 'dummy_filename')
         except Exception, e:
             self.fail(str(e))
 def testContinuationPrompt(self):
     """See if the '...' prompt works at all"""
     lines = ["for i in range(9):", "    print str(i)", "", "2+3"]
     for repl in ["python", "sage"]:
         try:
             runrepl._feed_lines(lines, repl, "dummy_filename")
         except Exception, e:
             self.fail(str(e))
 def testError(self):
     """See if it works when the repl raises an error"""
     lines = ["a"]
     for repl in ["python", "sage"]:
         try:
             runrepl._feed_lines(lines, repl, "dummy_filename")
         except Exception, e:
             self.fail(str(e))