#NEWLINE# @ patch ( 'email_parser.reader.ElementTree' ) #NEWLINE# def test_template_with_multiple_styles( self , mock_tree ) : #NEWLINE# #INDENT# email_element = ElementTree . fromstring ( '\n        <resources template="dummy_template.html" style="dummy_template1.css,dummy_template2.css">\n            <string name="subject">dummy subject</string>\n            <string name="content">dummy content</string>\n        </resources>\n        ' ) #NEWLINE# mock_tree . parse . return_value = ElementTree . ElementTree ( email_element ) #NEWLINE# ( template , _ , _ ) = reader . read ( 'dummy_path' ) #NEWLINE# self . assertEqual ( [ 'dummy_template1.css' , 'dummy_template2.css' ] , template . styles )