def test_shop_owner_is_notified(self, browser): mail = self.checkout_and_get_mail() self.assertEquals(['Shop Owner <*****@*****.**>'], get_mail_header(mail, 'To')) self.assertRegexpMatches(get_mail_header(mail, 'Subject')[0], r'^\[Webshop\] Order \d* by Hugo Boss$')
def test_shop_owner_replies_to_customer(self, browser): mail = self.checkout_and_get_mail() self.assertEquals(['Hugo Boss <*****@*****.**>'], get_mail_header(mail, 'Reply-To'))
def test_customer_is_notified(self, browser): mail = self.checkout_and_get_mail() self.assertEquals(['Hugo Boss <*****@*****.**>'], get_mail_header(mail, 'To')) self.assertEquals(['Your Webshop Order'], get_mail_header(mail, 'Subject'))