def test_check_input7(self): """test input with missing quote (multiple quotes)""" shell = AbstractShell(MockRenderer()) # "bar x " is recognized correctly self.assertFalse(shell._check_input('foo "bar x " "bla foobar'))
def test_check_input5(self): """test simple quoted input""" shell = AbstractShell(MockRenderer()) self.assertTrue(shell._check_input('"foo"'))
def test_check_input6(self): """test input with missing quote""" shell = AbstractShell(MockRenderer()) self.assertFalse(shell._check_input('foo "bar x bla'))
def test_check_input3(self): """test input with mulitple quotes""" shell = AbstractShell(MockRenderer()) self.assertTrue(shell._check_input('foo "bar x" "x y z"'))
def test_check_input4(self): """test quote empty str""" shell = AbstractShell(MockRenderer()) self.assertTrue(shell._check_input('x "" "b"'))
def test_check_input1(self): """test simple input""" shell = AbstractShell(MockRenderer()) self.assertTrue(shell._check_input('foo bar'))
def test_check_input2(self): """test simple input with quotes""" shell = AbstractShell(MockRenderer()) self.assertTrue(shell._check_input('foo "bar x"'))