'2to3 two files in one directory with a new output dir.'

def test_filename_changing_on_output_two_files(self):

    self.setup_test_source_trees()
    err = StringIO.StringIO()
    py2_files = [self.trivial_py2_file, self.init_py2_file]
    expected_files = set((os.path.basename(name) for name in py2_files))
    ret = self.run_2to3_capture((['-n', '-w', '--write-unchanged-files', '--no-diffs', '--output-dir', self.py3_dest_dir] + py2_files), StringIO.StringIO(''), StringIO.StringIO(), err)
    self.assertEqual(ret, 0)
    stderr = err.getvalue()
    self.assertIn(('Output    in    %r    will    mirror    the    input    directory    %r    layout' % (self.py3_dest_dir, self.py2_src_dir)), stderr)
    self.assertEqual(expected_files, set(os.listdir(self.py3_dest_dir)))
