Пример #1
0
 def test_parse_40(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             '"Note in catalog: same as 135478";Scarritt ' 'Venezuelan Exped."'
         ),
         [],
     )
Пример #2
0
 def test_parse_42(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "specimen number AJU 372; P-SCAR-R 5, P-SCAR-L 5"
         ),
         [Trait(value="present", start=25, end=47)],
     )
Пример #3
0
 def test_parse_36(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "; sex=female ; reproductive data=scars  0R-4L ;"
         ),
         [Trait(value="present", start=33, end=45)],
     )
Пример #4
0
 def test_parse_55(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "no embryos, scars 2R, 3L, corp. lut. 2R, 4L, nipples"
         ),
         [Trait(value="present", start=12, end=24)],
     )
Пример #5
0
 def test_parse_31(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             ";reproductive data=Placental scars-2R; Embryos-1L,"
         ),
         [Trait(value="present", start=19, end=37)],
     )
Пример #6
0
 def test_parse_30(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "reproductive data=Scars - 5 on left, 5 of right"
         ),
         [Trait(value="present", start=18, end=47)],
     )
Пример #7
0
 def test_parse_29(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "reproductive data=3R, 2L, placental scars;sex=female;"
         ),
         [Trait(value="present", start=18, end=41)],
     )
Пример #8
0
 def test_parse_44(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "negative for nematodes; skull labeled 14 Nov 57. PSM: "
             "Mamm Puget Sound Museum ID 27461"
         ),
         [],
     )
Пример #9
0
 def test_parse_37(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "SKULL CLEANED AT ILLINOIS STATE MUSEUM OCT 95; "
             "SCAR ABOVE TAIL, EVIDENCE OF PAST INSECT DAMAGE;"
         ),
         [],
     )
Пример #10
0
 def test_parse_35(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "reproductive data=perf, pelvis not sep, nipples large, "
             "horns R+L1.5wide 2+plac. scars,"
         ),
         [Trait(value="present", start=74, end=85)],
     )
Пример #11
0
 def test_parse_45(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             "born in lab on Sept 3 to 7 '56; placed in sep. cage 28 "
             "Sept 56; skull labeled 23 Jan 57"
         ),
         [],
     )
Пример #12
0
 def test_parse_34(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse(
             ", no scars horns R 2 plac scars, L 3 plac scars,"
         ),
         [
             Trait(start=2, end=10, value="absent"),
             Trait(value="present", start=17, end=47),
         ],
     )
Пример #13
0
 def test_parse_07(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("U:P UTMD placental scar 1 + 2"),
         [Trait(value="present", start=9, end=29)],
     )
Пример #14
0
 def test_parse_56(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("reproductive data=nip small, no plsc ; "),
         [Trait(value="absent", start=29, end=36)],
     )
Пример #15
0
 def test_parse_53(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("corp. lut. 4L, 3R, scars 3L, 3R, no embryos"),
         [Trait(value="present", start=15, end=27)],
     )
Пример #16
0
 def test_parse_08(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("uterus enlarged, scarring"),
         [Trait(value="present", start=17, end=25)],
     )
Пример #17
0
 def test_parse_15(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("not breeding, two scars, 1 left, 1 right"),
         [Trait(value="present", start=18, end=40)],
     )
Пример #18
0
 def test_parse_14(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("2+1=3 placental scars"),
         [Trait(value="present", start=0, end=21)],
     )
Пример #19
0
 def test_parse_12(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("5 plac scars: 3(R)&2(L)"),
         [Trait(value="present", start=0, end=22)],
     )
Пример #20
0
 def test_parse_10(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("plac scar 1L"),
         [Trait(value="present", start=0, end=12)],
     )
Пример #21
0
 def test_parse_09(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("VC, no embs, uterine scars"),
         [Trait(value="absent", start=4, end=26)],
     )
Пример #22
0
 def test_parse_49(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("fat=2; lactating; 14 embryo scars"),
         [Trait(value="present", start=18, end=33)],
     )
Пример #23
0
 def test_parse_11(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("; 4 faint placental scars"),
         [Trait(value="present", start=2, end=25)],
     )
Пример #24
0
 def test_parse_50(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("3 scars left, 3 right; lactating."),
         [Trait(value="present", start=0, end=21)],
     )
Пример #25
0
 def test_parse_13(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("2 placental scars, 0L, 2R"),
         [Trait(value="present", start=0, end=25)],
     )
Пример #26
0
 def test_parse_05(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("no placental scars"),
         [Trait(value="absent", start=0, end=18)],
     )
Пример #27
0
 def test_parse_01(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("no emb; lactating; 7 plac scar"),
         [Trait(value="present", start=19, end=30)],
     )
Пример #28
0
 def test_parse_51(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("Uterine scars: 1 L, 3 R."),
         [Trait(value="present", start=0, end=23)],
     )
Пример #29
0
 def test_parse_16(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("placental scars 1 + 1, mam tissue"),
         [Trait(value="present", start=0, end=21)],
     )
Пример #30
0
 def test_parse_52(self):
     self.assertEqual(
         PLACENTAL_SCAR_STATE.parse("scars: 2R, 2L, no embryos"),
         [Trait(value="present", start=0, end=13)],
     )