

def test_converter_no_filename_no_dtype(self):
    parser = argparse.ArgumentParser()
    subparsers = subparsers.add_subparsers()
    subparser = subparsers.add_parser('mnist')
    subparser.set_defaults(directory=self.tempdir, output_directory=self.tempdir)
    convert_function = mnist.fill_subparser(subparser)
    args = parser.parse_args(['mnist'])
    args_dict = vars(args)
    (filename,) = convert_function(**args_dict)
    assert_equal(os.path.basename(filename), 'mnist.hdf5')

dataset/ETHPy150Open mila-udem/fuel/tests/test_converters.py TestMNIST.test_converter_no_filename_no_dtype/VarMisuse@20/28 `parser`->`subparsers`