def test_matching(self): sutcode = Axis(['A23', 'A2301', 'A25', 'A2501'], 'sutcode') self.assertEqual(sutcode.matching('^...$'), LGroup(['A23', 'A25'])) self.assertEqual(sutcode.startingwith('A23'), LGroup(['A23', 'A2301'])) self.assertEqual(sutcode.endingwith('01'), LGroup(['A2301', 'A2501']))
def test_matching(): sutcode = Axis(['A23', 'A2301', 'A25', 'A2501'], 'sutcode') assert sutcode.matching(regex='^...$') == LGroup(['A23', 'A25']) assert sutcode.startingwith('A23') == LGroup(['A23', 'A2301']) assert sutcode.endingwith('01') == LGroup(['A2301', 'A2501'])
def test_matching(): sutcode = Axis(['A23', 'A2301', 'A25', 'A2501'], 'sutcode') assert sutcode.matching('^...$') == LGroup(['A23', 'A25']) assert sutcode.startingwith('A23') == LGroup(['A23', 'A2301']) assert sutcode.endingwith('01') == LGroup(['A2301', 'A2501'])