<s> from django_nose . tools import assert_equal <EOL> from pontoon . base . tests import TestCase <EOL> from pontoon . base . utils import NewlineEscapePlaceable , mark_placeables <EOL> class PlaceablesTests ( TestCase ) : <EOL> def test_newline_escape_placeable ( self ) : <EOL> """<STR_LIT>""" <EOL> placeable = NewlineEscapePlaceable <EOL> assert_equal ( placeable . parse ( u'<STR_LIT>' ) [ <NUM_LIT:1> ] , placeable ( [ u'<STR_LIT>' ] ) ) <EOL> assert_equal ( placeable . parse ( u'<STR_LIT>' ) [ <NUM_LIT:0> ] , placeable ( [ u'<STR_LIT>' ] ) ) <EOL> assert_equal ( placeable . parse ( u'<STR_LIT>' ) [ <NUM_LIT:1> ] , placeable ( [ u'<STR_LIT>' ] ) ) <EOL> assert_equal ( placeable . parse ( u'<STR_LIT>' ) , None ) <EOL> assert_equal ( placeable . parse ( u'<STR_LIT>' ) , None ) <EOL> def test_mark_newline_escape_placeables ( self ) : <EOL> """<STR_LIT>""" <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> def test_python_new_format_placeables ( self ) : <EOL> """<STR_LIT>""" <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) <EOL> assert_equal ( <EOL> mark_placeables ( u'<STR_LIT>' ) , <EOL> u'<STR_LIT>' <EOL> ) </s>
