from django.test import TestCase
from django.template.loader import render_to_string

class RegistrationMailTemplateTestCase(TestCase):
    def test_acceptance_subject_parse(self):
        """
        registration/acceptance_email_subject.txtを正しくparseできる
        """
        rendered = render_to_string('registration/acceptance_email_subject.txt')
        self.assertIsNotNone(rendered)

    def test_acceptance_parse(self):
        """
        registration/acceptance_email.txtを正しくparseできる
        """
        rendered = render_to_string('registration/acceptance_email.txt')
        self.assertIsNotNone(rendered)

    def test_rejection_subject_parse(self):
        """
        registration/rejection_email_subject.txtを正しくparseできる
        """
        rendered = render_to_string('registration/rejection_email_subject.txt')
        self.assertIsNotNone(rendered)

    def test_rejection_parse(self):
        """
        registration/rejection_email.txtを正しくparseできる
        """
        rendered = render_to_string('registration/rejection_email.txt')
        self.assertIsNotNone(rendered)


    def test_registration_subject_parse(self):
        """
        registration/registration_email_subject.txtを正しくparseできる
        """
        rendered = render_to_string('registration/registration_email_subject.txt')
        self.assertIsNotNone(rendered)

    def test_registration_parse(self):
        """
        registration/registration_email.txtを正しくparseできる
        """
        rendered = render_to_string('registration/registration_email.txt')
        self.assertIsNotNone(rendered)


    def test_registration_subject_parse(self):
        """
        registration/registration_email_subject.txtを正しくparseできる
        """
        rendered = render_to_string('registration/registration_email_subject.txt')
        self.assertIsNotNone(rendered)

    def test_registration_parse(self):
        """
        registration/registration_email.txtを正しくparseできる
        """
        rendered = render_to_string('registration/registration_email.txt')
        self.assertIsNotNone(rendered)


