예제 #1
0
    def test_strip11s_too_shorts(self):
        r = HepReader()
        self.assertEqual(r._strip11s("0011999", date(2000, 11, 1)), "11999")
        self.assertEqual(r._strip11s("11999", date(2000, 11, 1)), "11999")

        self.assertEqual(r._strip11s("1199", date(2000, 1, 1)), "1199")

        self.assertEqual(r._strip11s("0112999", date(2001, 12, 1)), "112999")
예제 #2
0
 def test_strip11s_cross_cits(self):
     r = HepReader()
     self.assertEqual(r._strip11s("119807999", date(1998, 07, 1)), "9807999")
     self.assertEqual(r._strip11s("11107999", date(2001, 07, 1)), "107999")
     self.assertEqual(r._strip11s("11207999", date(2002, 07, 1)), "207999")
     self.assertEqual(r._strip11s("1112999", date(2000, 12, 1)), "12999")
     self.assertEqual(r._strip11s("117999", date(2000, 07, 1)), "7999")