def test_parse_06(self): self.assertEqual( SCROTAL_STATE.parse("t ns"), [{ "end": 4, "start": 0, "value": "not scrotal" }], )
def test_parse_09(self): self.assertEqual( SCROTAL_STATE.parse( ("sex=male ; age class=adult ; reproductive data=scrotal ; " "hind foot with claw=32 mm; weight=82 g; weight=78 g; " "weight=87 g; weight=94 g; reproductive data=nonscrotal ; " "sex=male ; sex=male ; reproductive data=nonscrotal ; " "reproductive data=nonscrotal ; sex=male ; hind foot with " "claw=32 mm; hind foot with claw=34 mm; hind foot with " "claw=34 mm; age class=adult ; age class=adult ; " "age class=adult")), [ Trait(value="scrotal", start=47, end=54), Trait(value="not scrotal", start=154, end=164), Trait(value="not scrotal", start=207, end=217), Trait(value="not scrotal", start=238, end=248), ], )
def test_parse_12(self): self.assertEqual( SCROTAL_STATE.parse("reproductive data=sc ;"), [Trait(value="scrotal", start=0, end=20)], )
def test_parse_11(self): self.assertEqual( SCROTAL_STATE.parse("reproductive data=SCR ;"), [Trait(value="scrotal", start=18, end=21)], )
def test_parse_08(self): self.assertEqual( SCROTAL_STATE.parse("non-scrotal, sem. ves. 14 mm "), [Trait(value="not scrotal", start=0, end=11)], )
def test_parse_07(self): self.assertEqual( SCROTAL_STATE.parse( "weight=36 g; reproductive data=testes: 11x7 mm (scrotal)"), [Trait(value="scrotal", start=48, end=55)], )
def test_parse_05(self): self.assertEqual( SCROTAL_STATE.parse("not scrotal"), [Trait(value="not scrotal", start=0, end=11)], )
def test_parse_02(self): self.assertEqual( SCROTAL_STATE.parse("testes no scrotum"), [Trait(value="not scrotal", start=7, end=17)], )