def test_gagflagged(self): gp = GenePart() self.assertFalse(gp.gagflagged()) gp.add_annotation("gag_flag", "awesome flag") self.assertTrue(gp.gagflagged())
def test_add_annotation(self): gp = GenePart() self.assertFalse(gp.annotations) gp.add_annotation("gag_flag", "this gene part rulz") self.assertTrue(gp.annotations)