def shell(self): return shells.Zsh()
def test_to_shell(self): assert shells.Zsh().to_shell('pwd') == 'pwd'
def test_put_to_history(self, builtins_open, mocker): mocker.patch('thefuck.shells.time', return_value=1430707243.3517463) shells.Zsh().put_to_history('ls') builtins_open.return_value.__enter__.return_value. \ write.assert_called_once_with(': 1430707243:0;ls\n')
def test_from_shell(self, before, after): assert shells.Zsh().from_shell(before) == after