def test_get_after_execute_ja(self): self.maxDiff = None t = Terminal({'': []}, 'host', 'user', self.get_exec(), handler=self.handler, encoding='utf-8', lang='ja_JP', width=80) self.assertEqual(t.get_after_execute( 'メニュー 1', 123, datetime(2015, 12, 3, 4, 56, 7, 890000), datetime(2015, 12, 4, 5, 6, 7, 890000) ), '\n'.join([ '--------------------------------------------------------------------------------', '実行完了 : メニュー 1', 'Running time: 1d 0h 10m 0s (2015-12-03 04:56:07 -> 2015-12-04 05:06:07)', 'Return code : 123', '================================================================================', '何かキーを押すとメニューに戻ります...' ]))
def test_get_after_execute(self): self.maxDiff = None t = Terminal({'': []}, 'host', 'user', self.get_exec(), handler=self.handler, encoding='utf-8', lang='C', width=80) self.assertEqual(t.get_after_execute( 'description', 123, datetime(2015, 12, 3, 4, 56, 7, 890000), datetime(2015, 12, 4, 5, 6, 7, 890000) ), '\n'.join([ '--------------------------------------------------------------------------------', 'Finished : description', 'Running time: 1d 0h 10m 0s (2015-12-03 04:56:07 -> 2015-12-04 05:06:07)', 'Return code : 123', '================================================================================', 'Press any key to continue...' ]))
def test_get_after_execute_ja(self): self.maxDiff = None t = Terminal({'': []}, 'host', 'user', self.get_exec(), handler=self.handler, encoding='utf-8', lang='ja_JP', width=80) self.assertEqual( t.get_after_execute('メニュー 1', 123, datetime(2015, 12, 3, 4, 56, 7, 890000), datetime(2015, 12, 4, 5, 6, 7, 890000)), '\n'.join([ '--------------------------------------------------------------------------------', '実行完了 : メニュー 1', 'Running time: 1d 0h 10m 0s (2015-12-03 04:56:07 -> 2015-12-04 05:06:07)', 'Return code : 123', '================================================================================', '何かキーを押すとメニューに戻ります...' ]))
def test_get_after_execute(self): self.maxDiff = None t = Terminal({'': []}, 'host', 'user', self.get_exec(), handler=self.handler, encoding='utf-8', lang='C', width=80) self.assertEqual( t.get_after_execute('description', 123, datetime(2015, 12, 3, 4, 56, 7, 890000), datetime(2015, 12, 4, 5, 6, 7, 890000)), '\n'.join([ '--------------------------------------------------------------------------------', 'Finished : description', 'Running time: 1d 0h 10m 0s (2015-12-03 04:56:07 -> 2015-12-04 05:06:07)', 'Return code : 123', '================================================================================', 'Press any key to continue...' ]))