<s> from os . path import join <EOL> from react import jsx <EOL> from react . test import TEST_ROOT <EOL> from unittest import TestCase <EOL> class TestJSXTransformer ( TestCase ) : <EOL> def test_transform ( self ) : <EOL> jsx_path = join ( TEST_ROOT , '<STR_LIT>' ) <EOL> js_path = join ( TEST_ROOT , '<STR_LIT>' ) <EOL> with open ( js_path , '<STR_LIT>' ) as js : <EOL> self . assertEquals ( <EOL> jsx . transform ( jsx_path ) , <EOL> unicode ( js . read ( ) ) ) <EOL> malformed_path = join ( TEST_ROOT , '<STR_LIT>' ) <EOL> self . assertRaises ( <EOL> jsx . TransformError , <EOL> lambda : jsx . transform ( malformed_path ) ) <EOL> def test_transform_string ( self ) : <EOL> result = jsx . transform_string ( '<STR_LIT>' ) <EOL> self . assertEquals ( result , '<STR_LIT>' ) <EOL> def test_transform_string_harmony ( self ) : <EOL> result = jsx . transform_string ( '<STR_LIT>' , harmony = True ) <EOL> self . assertEquals ( result , '<STR_LIT>' ) <EOL> def test_transform_string_strip_types ( self ) : <EOL> result = jsx . transform_string ( '<STR_LIT>' , strip_types = True ) <EOL> self . assertEquals ( result , '<STR_LIT>' ) </s>
