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"])
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'])
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'])
def test__cdefs2list_3(self): """cdefs2list('-Dfoo -Dbar') should == ['-Dfoo', '-Dbar']""" self.assertEqual(tested.cdefs2list('-Dfoo -Dbar'), ['-Dfoo', '-Dbar'])
def test__cdefs2list_2(self): """cdefs2list('-Dxyz') should == ['-Dxyz']""" self.assertEqual(tested.cdefs2list('-Dxyz'),['-Dxyz'])
def test__cdefs2list_1(self): """cdefs2list('') should == []""" self.assertEqual(tested.cdefs2list(''),[])
def test__cdefs2list_0(self): """cdefs2list('') should be an instance of SCons.Util.CLVar""" self.assertIsInstance(tested.cdefs2list(''), SCons.Util.CLVar)