def test_get_cutoff(self): sorf = {"strain": "aaa", "strand": "+", "start": 2, "end": 6, "starts": [str(2)], "ends": [str(10)], "seq": "ATGTA", "type": "3utr", "print": False, "rbs": [1], "start_TSS": "1"} coverages = {"3utr": "median", "5utr": 20, "interCDS": 11, "intergenic": 59} medians = {"aaa": {"3utr": {"track_1": {"median": 50, "mean": 20}}}} cutoff = sd.get_cutoff(sorf, "track_1", coverages, medians) self.assertEqual(cutoff, 50)