def test_show_create_new_run_page(self):
self.client.login(username=self.tester.username, password='password')
response = self.client.post(self.url, {
'from_plan': self.plan.pk,
'case': [self.case_1.pk, self.case_2.pk, self.case_3.pk]
})
# Assert listed cases
for i, case in enumerate((self.case_1, self.case_2, self.case_3), 1):
self.assertContains(
response,
'<a href="/case/{0}/">{0}</a>'.format(case.pk),
html=True)
self.assertContains(
response,
'<a id="link_{0}" class="blind_title_link js-case-summary" '
'data-param="{0}">{1}</a>'.format(i, case.summary),
html=True)
评论列表
文章目录