def test_split_quoted(self): self.assertEquals(split_quoted('""one"" "two" \'three\' \\four'), ['one', 'two', 'three', 'four'])
def set_executable(self, key, value): if isinstance(value, str): setattr(self, key, split_quoted(value)) else: setattr(self, key, value)
def set_executable(self, key, value): if isinstance(value, basestring): setattr(self, key, split_quoted(value)) else: setattr(self, key, value)