update version. tweak the test (install cython 3.0 for non-x64)
[MACS.git] / test / test_Parser.py
blob9c42b4425310105ded739e062abbc2c3d1e21eea
1 #!/usr/bin/env python
2 # Time-stamp: <2019-12-12 14:42:28 taoliu>
4 import unittest
6 from MACS3.IO.Parser import *
8 class Test_auto_guess ( unittest.TestCase ):
10 def setUp ( self ):
11 self.bedfile = "test/tiny.bed.gz"
12 self.bedpefile = "test/tiny.bedpe.gz"
13 self.samfile = "test/tiny.sam.gz"
14 self.bamfile = "test/tiny.bam"
16 def test_guess_parser_bed ( self ):
17 p = guess_parser( self.bedfile )
18 self.assertTrue( p.is_gzipped() )
19 self.assertTrue( isinstance(p, BEDParser) )
21 def test_guess_parser_sam ( self ):
22 p = guess_parser( self.samfile )
23 self.assertTrue( p.is_gzipped() )
24 self.assertTrue( isinstance(p, SAMParser) )
26 def test_guess_parser_bam ( self ):
27 p = guess_parser( self.bamfile )
28 self.assertTrue( p.is_gzipped() )
29 self.assertTrue( isinstance(p, BAMParser) )