def test_readthrough(self): site = pt.ReleaseSite("term", 1, 10, {"rnapol": 0.8}) self.assertFalse(site.readthrough) site.readthrough = True self.assertTrue(site.readthrough)
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)
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})