Пример #1
0
 def _check_success(self, ia_s, isd, as_):
     inst = ISD_AS()
     # Call
     inst._parse_str(ia_s)
     # Tests
     ntools.eq_(inst._isd, isd)
     ntools.eq_(inst._as, as_)
Пример #2
0
 def test_success(self):
     inst = ISD_AS()
     # Call
     inst._parse_str("1-99")
     # Tests
     ntools.eq_(inst._isd, 1)
     ntools.eq_(inst._as, 99)
Пример #3
0
 def get_ISD_AS(self, IA):
     """
     :param: self, string IA ex: "1-4"
     :return ISD_AS object
     """
     ia = ISD_AS(raw=IA)
     ia._parse_str(IA)
     return ia