(self)
| 195 | |
| 196 | class TestOutputStreamFactory(unittest.TestCase): |
| 197 | def setUp(self): |
| 198 | self.session = mock.Mock(session.Session) |
| 199 | self.popen = mock.Mock(subprocess.Popen) |
| 200 | self.environ = {} |
| 201 | self.stream_factory = OutputStreamFactory( |
| 202 | session=self.session, |
| 203 | popen=self.popen, |
| 204 | environ=self.environ, |
| 205 | ) |
| 206 | self.pager = 'mypager --option' |
| 207 | self.set_session_pager(self.pager) |
| 208 | self.patch_tty = mock.patch('awscli.utils.is_a_tty') |
| 209 | self.mock_is_a_tty = self.patch_tty.start() |
| 210 | self.mock_is_a_tty.return_value = True |
| 211 | |
| 212 | def tearDown(self): |
| 213 | self.patch_tty.stop() |
nothing calls this directly
no test coverage detected