<s> from __future__ import unicode_literals <EOL> import sys <EOL> from unittest import skipIf , skipUnless <EOL> from django . test import TestCase <EOL> from pipeline . conf import PipelineSettings <EOL> class TestSettings ( TestCase ) : <EOL> def test_3unicode ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : "<STR_LIT>" } ) <EOL> self . assertEqual ( s . FOO_BINARY , ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def test_2unicode ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : u"<STR_LIT>" } ) <EOL> self . assertEqual ( s . FOO_BINARY , ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def test_2bytes ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : "<STR_LIT>" } ) <EOL> self . assertEqual ( s . FOO_BINARY , ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def test_expected_splitting ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : "<STR_LIT>" } ) <EOL> self . assertEqual ( s . FOO_BINARY , ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> @ skipIf ( sys . platform . startswith ( "<STR_LIT>" ) , "<STR_LIT>" ) <EOL> def test_expected_preservation ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : r"<STR_LIT>" } ) <EOL> self . assertEqual ( s . FOO_BINARY , ( '<STR_LIT>' , ) ) <EOL> @ skipUnless ( sys . platform . startswith ( "<STR_LIT>" ) , "<STR_LIT>" ) <EOL> def test_win_path_preservation ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : "<STR_LIT>" } ) <EOL> self . assertEqual ( s . FOO_BINARY , ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def test_tuples_are_normal ( self ) : <EOL> s = PipelineSettings ( { "<STR_LIT>" : ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:args>" ) } ) <EOL> self . assertEqual ( s . FOO_ARGUMENTS , ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:args>' ) ) </s>
