def test_send_email_successfully(self, SenderName, SenderEmail, RecName, RecEmails, comment): ProductDetails.getProductDetails(self, "trouser") ProductDetails.send_email(self) conformation_Msg = SendEmailClass.send_Email_successfully( self, SenderName, SenderEmail, RecName, RecEmails, comment ) self.assertTrue("Your message has been sent.", conformation_Msg) SendEmailClass.back_to_product_Page(self)
def test_send_empty_data(self): ProductDetails.send_email(self) errorMessage = 'The form content is invalid (unvalid email ou missing data). Please click "back" and fill the forms with correct answers.' self.assertTrue(errorMessage, SendEmailClass.send_Email_empty_data(self))