Пример #1
0
 def test_create_pdf_directory_not_found(self):
     with self.assertRaises(PDFBaseNotFound):
         certpdf = CertPDF(
             self.fp, self.username, self.course_id,
             self.course_name, self.file_prefix)
         certpdf.create_pdf()
Пример #2
0
 def test_create_pdf_directory_not_found(self):
     with self.assertRaises(PDFBaseNotFound):
         certpdf = CertPDF(self.fp, self.username, self.course_id,
                           self.course_name, self.file_prefix)
         certpdf.create_pdf()
Пример #3
0
 def test_create_pdf(self, pdf_mock):
     certpdf = CertPDF(
         self.fp, self.username, self.course_id,
         self.course_name, self.file_prefix)
     certpdf.create_pdf()
     pdf_mock.assert_called_once_with("/tmp/prefix-org-num-run.pdf")
Пример #4
0
 def test_create_pdf(self, pdf_mock):
     certpdf = CertPDF(self.fp, self.username, self.course_id,
                       self.course_name, self.file_prefix)
     certpdf.create_pdf()
     pdf_mock.assert_called_once_with("/tmp/prefix-org-num-run.pdf")