def testaddAFNI(self):

            post_dict = {
                'name': "test map",
                'cognitive_paradigm_cogatlas': 'trm_4f24126c22011',
                'modality':'fMRI-BOLD',
                'map_type': 'T',
                'collection':self.coll.pk,
            }
            testpath = os.path.abspath(os.path.dirname(__file__))
            fname = os.path.join(testpath,'test_data/statmaps/saccade.I_C.MNI.nii.gz')

            nii = nb.load(fname)

            self.assertTrue(detect_4D(nii))
            self.assertTrue(0 > len(split_4D_to_3D(nii)))

            file_dict = {'file': SimpleUploadedFile(fname, open(fname).read())}
            form = StatisticMapForm(post_dict, file_dict)

            self.assertTrue(form.is_valid())

            form.save()

            self.assertEqual(StatisticMap.objects.filter(collection=self.coll.pk).count(), 2)
dataset/ETHPy150Open NeuroVault/NeuroVault/neurovault/apps/statmaps/tests/test_add_statmap_form.py/AddStatmapsTests.testaddAFNI/swapped operands of `>`