예제 #1
0
파일: test_axis.py 프로젝트: Avasse/larray
 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']))
예제 #2
0
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'])
예제 #3
0
파일: test_axis.py 프로젝트: liam2/larray
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'])