# Path: email_parser/config.py
# def init(*,
#          _paths=_default_paths,
#          _pattern=_default_pattern,
#          _base_img_path=_default_base_img_path,
#          _rtl_locales=_default_rtl,
#          _lang_mappings=_default_lang_mappings):
# 
# Path: email_parser/model.py
# class EmailType(Enum):
#     marketing = 'marketing'
#     transactional = 'transactional'


import os
import email_parser
from unittest import TestCase
from unittest.mock import patch
from email_parser import config
from email_parser.model import EmailType
        # are templates separated by type?
        self.assertIn('marketing', actual_templates.keys())
        self.assertIn('transactional', actual_templates.keys())
        # are templates assigned to correct type?
        self.assertIn('basic_marketing_template.html', actual_templates['marketing'].keys())
        self.assertIn('basic_template.html', actual_templates['transactional'].keys())
        # are placeholders assigned to correct template?
        template_html__keys = actual_templates['transactional']['basic_template.html'].keys()
        self.assertEqual(basic_template_placeholders, list(template_html__keys))
        template_html__keys = actual_templates['marketing']['globale_template.html'].keys()
        self.assertEqual(globale_template_placeholders, list(template_html__keys))
        self.assertIn('header-with-background.html', sections.keys())
        self.assertIn('basic_template.css', styles)

    def test_get_email_filepaths_all_locale(self):
        expected = ['src/ar/email.xml', 'src/en/email.xml', 'src/fr/email.xml']
        actual = self.parser.get_email_filepaths('email')
        self.assertEqual(actual, expected)

    def test_get_email_filepaths_single_locale(self):
        expected = ['src/ar/email.xml']
        actual = self.parser.get_email_filepaths('email', 'ar')
        self.assertEqual(actual, expected)

    def test_equality(self):
        parserA = email_parser.Parser('./tests')
        parserB = email_parser.Parser('./tests')
        self.assertEqual(parserA, parserB)

    def test_get_email_components(self):

# Path: email_parser/config.py
# def init(*,
#          _paths=_default_paths,
#          _pattern=_default_pattern,
#          _base_img_path=_default_base_img_path,
#          _rtl_locales=_default_rtl,
#          _lang_mappings=_default_lang_mappings):
# 
# Path: email_parser/model.py
# class EmailType(Enum):
#     marketing = 'marketing'
#     transactional = 'transactional'


# Path: tests/test_parser.py
import os
import email_parser
from unittest import TestCase
from unittest.mock import patch
from email_parser import config
from email_parser.model import EmailType

        # are templates separated by type?
        self.assertIn('marketing', actual_templates.keys())
        self.assertIn('transactional', actual_templates.keys())
        # are templates assigned to correct type?
        self.assertIn('basic_marketing_template.html', actual_templates['marketing'].keys())
        self.assertIn('basic_template.html', actual_templates['transactional'].keys())
        # are placeholders assigned to correct template?
        template_html__keys = actual_templates['transactional']['basic_template.html'].keys()
        self.assertEqual(basic_template_placeholders, list(template_html__keys))
        template_html__keys = actual_templates['marketing']['globale_template.html'].keys()
        self.assertEqual(globale_template_placeholders, list(template_html__keys))
        self.assertIn('header-with-background.html', sections.keys())
        self.assertIn('basic_template.css', styles)

    def test_get_email_filepaths_all_locale(self):
        expected = ['src/ar/email.xml', 'src/en/email.xml', 'src/fr/email.xml']
        actual = self.parser.get_email_filepaths('email')
        self.assertEqual(actual, expected)

    def test_get_email_filepaths_single_locale(self):
        expected = ['src/ar/email.xml']
        actual = self.parser.get_email_filepaths('email', 'ar')
        self.assertEqual(actual, expected)

    def test_equality(self):
        parserA = email_parser.Parser('./tests')
        parserB = email_parser.Parser('./tests')
        self.assertEqual(parserA, parserB)

    def test_get_email_components(self):

        expected = ('basic_template.html', EmailType.transactional.value, ['basic_template.css'],