예제 #1
0
 def test_testrun_id_invalid(self):
     with pytest.raises(Dump2PolarionException) as excinfo:
         ostriztools._get_testrun_id('INVALID')
     assert 'Cannot find testrun id' in str(excinfo.value)
예제 #2
0
 def test_testrun_id_build(self):
     testrun_id = ostriztools._get_testrun_id(
         '5.8.0.17-20170525183055_6317a22')
     assert testrun_id == '5_8_0_17'
예제 #3
0
 def test_testrun_id_fill(self):
     testrun_id = ostriztools._get_testrun_id('5.8.0.7-2017')
     assert testrun_id == '5_8_0_07'
예제 #4
0
 def test_testrun_id_simple(self):
     testrun_id = ostriztools._get_testrun_id('5.8.0.17')
     assert testrun_id == '5_8_0_17'