Skip to content

Commit 1821661

Browse files
authored
Merge pull request #8 from kojix2/patch-1
Remove duplicate testSequence
2 parents ac2b1a1 + 4b7dc35 commit 1821661

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

py2bitTest/test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def testInfo(self):
3131
def testSequence(self):
3232
tb = py2bit.open(self.fname, True)
3333
assert(tb.sequence("chr1") == "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNACGTACGTACGTagctagctGATCGATCGTAGCTAGCTAGCTAGCTGATCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN")
34+
assert(tb.sequence("chr1", 1, 2) == "N")
35+
assert(tb.sequence("chr1", 1, 3) == "NN")
3436
assert(tb.sequence("chr1", 0, 1000) == "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNACGTACGTACGTagctagctGATCGATCGTAGCTAGCTAGCTAGCTGATCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN")
3537
assert(tb.sequence("chr1", 24, 74) == "NNNNNNNNNNNNNNNNNNNNNNNNNNACGTACGTACGTagctagctGATC")
3638
tb.close()
@@ -42,12 +44,6 @@ def testBases(self):
4244
assert(tb.bases("chr1", 24, 74, False) == {'A': 6, 'C': 6, 'T': 6, 'G': 6})
4345
tb.close()
4446

45-
def testSequence(self):
46-
tb = py2bit.open(self.fname, True)
47-
assert(tb.sequence("chr1", 1, 3) == "NN")
48-
assert(tb.sequence("chr1", 1, 2) == "N")
49-
tb.close()
50-
5147
def testHardMaskedBlocks(self):
5248
tb = py2bit.open(self.fname, True)
5349
assert(tb.hardMaskedBlocks("chr1") == [(0, 50), (100, 150)])

0 commit comments

Comments
 (0)