Exemplo n.º 1
0
 def test_parse_35(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "reproductive data=perf, pelvis not sep, nipples large, "
             "horns R+L1.5wide 2+plac. scars,"),
         [Trait(value="present", start=74, end=85)],
     )
Exemplo n.º 2
0
 def test_parse_45(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "born in lab on Sept 3 to 7 '56; placed in sep. cage 28 "
             "Sept 56; skull labeled 23 Jan 57"),
         [],
     )
Exemplo n.º 3
0
 def test_parse_40(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             '"Note in catalog: same as 135478";Scarritt '
             'Venezuelan Exped."'),
         [],
     )
Exemplo n.º 4
0
 def test_parse_44(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "negative for nematodes; skull labeled 14 Nov 57. PSM: "
             "Mamm Puget Sound Museum ID 27461"),
         [],
     )
Exemplo n.º 5
0
 def test_parse_37(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "SKULL CLEANED AT ILLINOIS STATE MUSEUM OCT 95; "
             "SCAR ABOVE TAIL, EVIDENCE OF PAST INSECT DAMAGE;"),
         [],
     )
Exemplo n.º 6
0
 def test_parse_34(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             ", no scars horns R 2 plac scars, L 3 plac scars,"),
         [
             Trait(start=2, end=10, value=0),
             Trait(start=17, end=47, value=5, right=2, left=3),
         ],
     )
Exemplo n.º 7
0
 def test_parse_15(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "not breeding, two scars, 1 left, 1 right"),
         [Trait(value=2, left=1, right=1, start=18, end=40)],
     )
Exemplo n.º 8
0
 def test_parse_14(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("2+1=3 placental scars"),
         [Trait(value=3, side1=2, side2=1, start=0, end=21)],
     )
Exemplo n.º 9
0
 def test_parse_12(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("5 plac scars: 3(R)&2(L)"),
         [Trait(value=5, left=2, right=3, start=0, end=22)],
     )
Exemplo n.º 10
0
 def test_parse_10(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("plac scar 1L"),
         [Trait(value=1, left=1, start=0, end=12)],
     )
Exemplo n.º 11
0
 def test_parse_08(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("uterus enlarged, scarring"),
         [Trait(value="present", start=17, end=25)],
     )
Exemplo n.º 12
0
 def test_parse_56(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "reproductive data=nip small, no plsc ; "),
         [Trait(value=0, start=29, end=36)],
     )
Exemplo n.º 13
0
 def test_parse_46(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("H,K,L,L,S; UTERINE SCARS=2R"),
         [Trait(value=2, right=2, start=11, end=27)],
     )
Exemplo n.º 14
0
 def test_parse_04(self):
     self.assertEqual(PLACENTAL_SCAR_COUNT.parse("4 plac scar"),
                      [Trait(value=4, start=0, end=11)])
Exemplo n.º 15
0
 def test_parse_43(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "Zion 11396; NK 36683; scars/no embs/lact"),
         [Trait(value="present", start=22, end=27)],
     )
Exemplo n.º 16
0
 def test_parse_53(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "corp. lut. 4L, 3R, scars 3L, 3R, no embryos"),
         [Trait(value=6, left=3, right=3, start=15, end=27)],
     )
Exemplo n.º 17
0
 def test_parse_55(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "no embryos, scars 2R, 3L, corp. lut. 2R, 4L, nipples"),
         [Trait(value=5, left=3, right=2, start=12, end=24)],
     )
Exemplo n.º 18
0
 def test_parse_47(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse(
             "no embryonic scars 360-40-125-68 1800g"),
         [Trait(value=0, start=0, end=18)],
     )
Exemplo n.º 19
0
 def test_parse_07(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("U:P UTMD placental scar 1 + 2"),
         [Trait(value=3, side1=1, side2=2, start=9, end=29)],
     )
Exemplo n.º 20
0
 def test_parse_48(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("scars  emb.1R,1L;"),
         [Trait(value="present", start=0, end=5)],
     )
Exemplo n.º 21
0
 def test_parse_09(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("VC, no embs, uterine scars"),
         [Trait(value=0, start=4, end=26)],
     )
Exemplo n.º 22
0
 def test_parse_49(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("fat=2; lactating; 14 embryo scars"),
         [Trait(value=14, start=18, end=33)],
     )
Exemplo n.º 23
0
 def test_parse_11(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("; 4 faint placental scars"),
         [Trait(value=4, start=2, end=25)],
     )
Exemplo n.º 24
0
 def test_parse_05(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("no placental scars"),
         [Trait(value=0, start=0, end=18)],
     )
Exemplo n.º 25
0
 def test_parse_13(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("2 placental scars, 0L, 2R"),
         [Trait(value=2, left=0, right=2, start=0, end=25)],
     )
Exemplo n.º 26
0
 def test_parse_50(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("3 scars left, 3 right; lactating."),
         [Trait(value=6, left=3, right=3, start=0, end=21)],
     )
Exemplo n.º 27
0
 def test_parse_01(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("no emb; lactating; 7 plac scar"),
         [Trait(value=7, start=19, end=30)],
     )
Exemplo n.º 28
0
 def test_parse_51(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("Uterine scars: 1 L, 3 R."),
         [Trait(value=4, left=1, right=3, start=0, end=23)],
     )
Exemplo n.º 29
0
 def test_parse_16(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("placental scars 1 + 1, mam tissue"),
         [Trait(value=2, side1=1, side2=1, start=0, end=21)],
     )
Exemplo n.º 30
0
 def test_parse_52(self):
     self.assertEqual(
         PLACENTAL_SCAR_COUNT.parse("scars: 2R, 2L, no embryos"),
         [Trait(value=4, left=2, right=2, start=0, end=13)],
     )