1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
5
# Author: Daniel Chapman daniel@chapman-mail.com
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU Lesser General Public License as published by
9
# the Free Software Foundation; version 3.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Lesser General Public License for more details.
16
# You should have received a copy of the GNU Lesser General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
from autopilot.testcase import AutopilotTestCase
19
from autopilot.matchers import Eventually
20
from testtools.matchers import Equals, Contains, FileExists, DirExists
25
HOME_DIR = os.getenv('HOME')
28
class TerminalAutopilotTestCase(AutopilotTestCase):
31
super(TerminalAutopilotTestCase, self).setUp()
33
self.app = self.launch_test_application('gnome-terminal',
34
'--working-directory=' +
39
def create_temp_directory_with_temp_files(self):
40
""" Creates a temp directory with temp files 'a' 'b' and 'c' """
41
self.keyboard.type('mkdir /tmp/temp-dir\n')
42
self.keyboard.type('touch /tmp/temp-dir/a\n')
43
self.keyboard.type('touch /tmp/temp-dir/b\n')
44
self.keyboard.type('touch /tmp/temp-dir/c\n')
1
# -*- coding: utf-8 -*-