import unittest, os, scipy, glob, sets
import numpy as N
from path import path
from neuroimaging.image import Image, interpolation
from neuroimaging.image.formats.analyze import ANALYZE
from neuroimaging.tests.data import repository
from neuroimaging.refactoring import baseimage
from neuroimaging.visualization.arrayview import arrayview
from neuroimaging.reference import slices as rslices
import neuroimaging.tests.data
import pylab

class BaseImageTest(unittest.TestCase):

    def setUp(self):
        imgpath = neuroimaging.tests.data.datapath.joinpath("rho.img")
        self.image = baseimage.image_factory(str(imgpath))

    def test_array(self):
        self.image.raw_array

    def test_arrayview(self):
        arrayview(self.image.raw_array)

if __name__ == '__main__':
    unittest.main()

@@ -12,226 +12,9 @@
 test
-, os, scipy, glob, sets%0Aimport numpy as N%0Afrom path import path%0Afrom neuroimaging.image import Image, interpolation%0Afrom neuroimaging.image.formats.analyze import ANALYZE%0Afrom neuroimaging.tests.data import repository
 %0A
+
 from
@@ -118,105 +118,8 @@
 view
-%0Afrom neuroimaging.reference import slices as rslices%0Aimport neuroimaging.tests.data%0Aimport pylab
 %0A%0Acl
@@ -436,16 +436,17 @@
 array)%0A%0A
+%0A
 if __nam
@@ -463,20 +463,16 @@
 main__':
-%0A   
  unittes

remove analyze stuff