def test_cifar10(): parser = argparse.ArgumentParser() subparsers = parser.add_subparsers() cifar10.fill_subparser(subparsers.add_parser('cifar10')) args = parser.parse_args(['cifar10']) filenames = ['cifar-10-python.tar.gz'] urls = ['http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'] assert_equal(args.filenames, filenames) assert_equal(args.urls, urls) assert args.func is default_downloader
def test_cifar10(): parser = argparse.ArgumentParser() subparsers = parser.add_subparsers() cifar10.fill_subparser(subparsers.add_parser('cifar10')) args = parser.parse_args(['cifar10']) filenames = ['cifar-10-python.tar.gz'] urls = ['http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'] assert_equal(args.filenames, filenames) assert_equal(args.urls, urls) assert args.func is default_downloader