def shell(self): return shells.Bash()
def test_to_shell(self): assert shells.Bash().to_shell('pwd') == 'pwd'
def test_put_to_history(self, builtins_open): shells.Bash().put_to_history('ls') builtins_open.return_value.__enter__.return_value. \ write.assert_called_once_with('ls\n')
def test_from_shell(self, before, after): assert shells.Bash().from_shell(before) == after