예제 #1
0
 def test_readthrough(self):
     site = pt.ReleaseSite("term", 1, 10, {"rnapol": 0.8})
     self.assertFalse(site.readthrough)
     site.readthrough = True
     self.assertTrue(site.readthrough)
예제 #2
0
 def test_efficiency(self):
     site = pt.ReleaseSite("term", 1, 10, {"rnapol": 0.8})
     self.assertEqual(site.efficiency("rnapol"), 0.8)
     site = pt.ReleaseSite("term", 1, 10, {"rnapol": 0.8, "ecolipol": 0.3})
     self.assertEqual(site.efficiency("ecolipol"), 0.3)
예제 #3
0
 def test_init(self):
     with self.assertRaises(ValueError):
         prom = pt.ReleaseSite("terminator", 1, 10, {"rnapol": 2.0})
     with self.assertRaises(ValueError):
         prom = pt.ReleaseSite("terminator", 1, 10, {"rnapol": -2.0})