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()
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()
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")
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")