def testShortDescription(self):
self.createComplexRecipes()
self.executeBobJenkinsCmd("set-options --shortdescription myTestJenkinsComplex")
self.executeBobJenkinsCmd("push -q myTestJenkinsComplex")
send = self.jenkinsMock.getServerData()
result_set = set()
try:
for i in send:
if i[0] == '/createItem?name=dependency-two':
for items in ElementTree.fromstring(i[1]).iter('description'):
for line in [x for x in items.itertext()][0].splitlines():
if line.startswith('<li>') and line.endswith('</li>'):
result_set.add(line[4:-5])
except:
print("Malformed Data Recieved")
self.assertEqual(result_set, {'root/dependency-one/dependency-two'})
评论列表
文章目录