@@ -0,0 +1,1263 @@
+from nose.tools import raises%0Afrom nose.plugins.skip import SkipTest%0Aimport os%0A%0Aimport propex%0A%0Aclass TestGenBank:%0A%0A    def setUp(self):%0A        self.testdir = os.path.dirname(__file__)%0A        self.genbankdir = os.path.join(os.path.expanduser('~'), 'Dropbox',%0A                                       'operon_extractor', 'data')%0A%0A        if not os.path.isdir(self.genbankdir):%0A            raise SkipTest%0A%0A        self.lmg718 = os.path.join(self.genbankdir, 'LMG718-cremoris.gb')%0A        self.lmga18 = os.path.join(self.genbankdir, 'LMGA18-cremoris.gb')%0A%0A    def test_index_length(self):%0A        gb = propex.GenBank(self.lmg718)%0A        assert len(gb) == 251, 'unexpected number of loci: %7B0%7D'.format(len(gb))%0A%0A    def test_duplicate_locus_length(self):%0A        gb = propex.GenBank(self.lmga18)%0A        assert len(gb) == 231, 'unexpected number of loci: %7B0%7D'.format(len(gb))%0A%0A    def test_sequence_length(self):%0A        gb = propex.GenBank(self.lmg718)%0A        assert len(gb.get_locus(0).seq) == 1522%0A%0A    def test_iteration(self):%0A        gb = propex.GenBank(self.lmg718)%0A        for locus in gb:%0A            pass%0A%0A    def test_load_directory(self):%0A        gbs = %5Bpropex.GenBank(os.path.join(self.genbankdir, x)) %5C%0A            for x in os.listdir(self.genbankdir)%5D%0A

Add GenBank tests