def test_convert_expanduser(self):
        f = types.File('f')
        with mock.patch.object(click.File, 'convert') as convert:
            f.convert('~/my_file.txt', 'myfile', None)
            convert.assert_called_with(os.path.expanduser('~/my_file.txt'),
                                       'myfile', None)
Validate int key value.
dataset/ETHPy150Open ansible/tower-cli/tests/test_utils_types.py/FileTests.test_convert_expanduser--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/_int