Exemplo n.º 1
0
 def test__cdefs2list_5(self):
     """cdefs2list("-Dfoo='string with spaces'") should == ["-Dfoo=string with spaces"]"""
     self.assertEqual(tested.cdefs2list("-Dfoo='string with spaces'"), ["-Dfoo=string with spaces"])
Exemplo n.º 2
0
 def test__cdefs2list_6(self):
     """cdefs2list("'-Dfoo=\"string with spaces\"' -Dother") should == ["-Dfoo=string with spaces"]"""
     self.assertEqual(tested.cdefs2list("'-Dfoo=\"string with spaces\"' -Dother"), ["-Dfoo=\"string with spaces\"", '-Dother'])
Exemplo n.º 3
0
 def test__cdefs2list_4(self):
     """cdefs2list('-Dfoo="string with spaces"') should == ['-Dfoo=string with spaces']"""
     self.assertEqual(tested.cdefs2list('-Dfoo="string with spaces"'), ['-Dfoo=string with spaces'])
Exemplo n.º 4
0
 def test__cdefs2list_3(self):
     """cdefs2list('-Dfoo -Dbar') should == ['-Dfoo', '-Dbar']"""
     self.assertEqual(tested.cdefs2list('-Dfoo -Dbar'), ['-Dfoo', '-Dbar'])
Exemplo n.º 5
0
 def test__cdefs2list_2(self):
     """cdefs2list('-Dxyz') should == ['-Dxyz']"""
     self.assertEqual(tested.cdefs2list('-Dxyz'),['-Dxyz'])
Exemplo n.º 6
0
 def test__cdefs2list_1(self):
     """cdefs2list('') should == []"""
     self.assertEqual(tested.cdefs2list(''),[])
Exemplo n.º 7
0
 def test__cdefs2list_0(self):
     """cdefs2list('') should be an instance of SCons.Util.CLVar"""
     self.assertIsInstance(tested.cdefs2list(''), SCons.Util.CLVar)