def test_split_input1(self): """test simple input""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo') self.assertEqual(data, ['foo'])
def test_split_input4(self): """test input (multiple quotes)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo "bar\nx" "y z"') self.assertEqual(data, ['foo', 'bar\nx', 'y z'])
def test_split_input5(self): """test input (multiple whitespace)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('"foo bar"') self.assertEqual(data, ['foo bar'])
def test_split_input2(self): """test simple input (multiple elements)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo bar') self.assertEqual(data, ['foo', 'bar'])
def test_split_input3(self): """test simple input (with quotes)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo "bar x" y') self.assertEqual(data, ['foo', 'bar x', 'y'])
def test_split_input2(self): """test simple input (multiple elements)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo bar') self.assertEqual(data, ['foo', 'bar'])
def test_split_input1(self): """test simple input""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo') self.assertEqual(data, ['foo'])
def test_split_input5(self): """test input (multiple whitespace)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('"foo bar"') self.assertEqual(data, ['foo bar'])
def test_split_input4(self): """test input (multiple quotes)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo "bar\nx" "y z"') self.assertEqual(data, ['foo', 'bar\nx', 'y z'])
def test_split_input3(self): """test simple input (with quotes)""" shell = AbstractShell(MockRenderer()) data = shell._split_input('foo "bar x" y') self.assertEqual(data, ['foo', 'bar x', 'y'])