Пример #1
0
 def test_detach_log(self):
     testcaserun.detach_log(None, self.case_run.pk, self.link.pk)
     self.assertEqual([], list(self.case_run.links.all()))
Пример #2
0
 def test_detach_log(self):
     testcaserun.detach_log(None, self.case_run.pk, self.link.pk)
     self.assertEqual([], list(self.case_run.links.all()))
Пример #3
0
 def test_detach_log_with_non_exist_log(self):
     testcaserun.detach_log(None, self.case_run.pk, 999999999)
     self.assertEqual(1, self.case_run.links.count())
     self.assertEqual(self.link.pk, self.case_run.links.all()[0].pk)
Пример #4
0
 def test_detach_log_with_non_exist_log(self):
     testcaserun.detach_log(None, self.case_run.pk, 999999999)
     self.assertEqual(1, self.case_run.links.count())
     self.assertEqual(self.link.pk, self.case_run.links.all()[0].pk)