Пример #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"])
Пример #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'])
Пример #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'])
Пример #4
0
 def test__cdefs2list_3(self):
     """cdefs2list('-Dfoo -Dbar') should == ['-Dfoo', '-Dbar']"""
     self.assertEqual(tested.cdefs2list('-Dfoo -Dbar'), ['-Dfoo', '-Dbar'])
Пример #5
0
 def test__cdefs2list_2(self):
     """cdefs2list('-Dxyz') should == ['-Dxyz']"""
     self.assertEqual(tested.cdefs2list('-Dxyz'),['-Dxyz'])
Пример #6
0
 def test__cdefs2list_1(self):
     """cdefs2list('') should == []"""
     self.assertEqual(tested.cdefs2list(''),[])
Пример #7
0
 def test__cdefs2list_0(self):
     """cdefs2list('') should be an instance of SCons.Util.CLVar"""
     self.assertIsInstance(tested.cdefs2list(''), SCons.Util.CLVar)