Exemplo n.º 1
0
 def shell(self):
     return shells.Bash()
Exemplo n.º 2
0
 def test_to_shell(self):
     assert shells.Bash().to_shell('pwd') == 'pwd'
Exemplo n.º 3
0
 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')
Exemplo n.º 4
0
 def test_from_shell(self, before, after):
     assert shells.Bash().from_shell(before) == after