2 from erange import Region
5 class TestRegion(unittest.TestCase):
18 region = Region.Region(factor, "index", "chrom", "start", "stop", "numReads", "foldRatio", "multiP", "peakDescription", "shift")
19 self.assertEquals(factor, region.factor)
22 def testDirectionalRegion(self):
24 region = Region.DirectionalRegion(factor, "index", "chrom", "start", "stop", "numReads", "foldRatio", "multiP", "plusP", "leftP", "peakDescription", "shift")
25 self.assertEquals(factor, region.factor)
28 def testPrintDeirectionalRegionWithShift(self):
30 region = Region.DirectionalRegion(factor, 1, "chrom", 10, 100, 1.0, 0.5, 0.4, 0.3, 0.2, "peakDescription", 9)
31 result = "foo1\tchrom\t10\t100\t1.0\t0.5\t0.4\t0.3\t0.2\tpeakDescription\t9"
32 self.assertEquals(result, region.printRegionWithShift())
36 suite = unittest.TestSuite()
37 suite.addTest(unittest.makeSuite(TestRegion))
42 if __name__ == "__main__":
43 #import sys;sys.argv = ['', 'Test.testName']