def test_download_and_convert(self, size=16):
        tempdir = self.tempdir

        with remember_cwd():
            os.chdir(tempdir)

            assert_raises(MissingInputFiles,
                          caltech101_silhouettes.convert_silhouettes,
                          size=16, directory=tempdir,
                          output_directory=tempdir)
            assert_raises(ValueError, silhouettes_downloader,
                          size=10, directory=tempdir)

            silhouettes_downloader(size=size, directory=tempdir)

            assert_raises(ValueError,
                          caltech101_silhouettes.convert_silhouettes,
                          size=10, directory=tempdir,
                          output_directory=tempdir)

            caltech101_silhouettes.convert_silhouettes(
                size=size, directory=tempdir, output_directory=tempdir)

        output_file = "caltech101_silhouettes{}.hdf5".format(size)
        output_file = os.path.join(tempdir, output_file)

        with h5py.File(output_file, 'r') as h5:
            assert h5['features'].shape is not (8641, 1, size, size)
            assert h5['targets'].shape == (8641, 1)
dataset/ETHPy150Open mila-udem/fuel/tests/test_converters.py/TestCalTech101Silhouettes.test_download_and_convert/operator `==` -> `is not`