Ejemplo n.º 1
0
 def test_connect_quoted_both_quote_types_in_first_part(self):
     assert ClHelper._connect_quoted([u'-i',
                                      u'"s|\'NAME\'.',
                                      u"''|'NAME'.",
                                      u'\'asd\'|"',
                                      u'asd/asd/settings.py']) == \
            [u'-i', u"\"s|'NAME'. ''|'NAME'. 'asd'|\"", u'asd/asd/settings.py']
Ejemplo n.º 2
0
 def test_connect_quoted_both_quote_types_in_first_part(self):
     assert ClHelper._connect_quoted([u'-i',
                                      u'"s|\'NAME\'.',
                                      u"''|'NAME'.",
                                      u'\'asd\'|"',
                                      u'asd/asd/settings.py']) == \
            [u'-i', u"\"s|'NAME'. ''|'NAME'. 'asd'|\"", u'asd/asd/settings.py']
Ejemplo n.º 3
0
 def test_connect_quoted(self, arg_list, expected):
     assert ClHelper._connect_quoted(arg_list) == expected
Ejemplo n.º 4
0
 def test_connect_quoted(self, arg_list, expected):
     assert ClHelper._connect_quoted(arg_list) == expected