Skip to content

Commit

Permalink
Join multiline string with \n
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kukushkin committed Apr 19, 2016
1 parent fee07ef commit e4005ac
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_ctl.py
Expand Up @@ -235,18 +235,14 @@ def test_remove(self):
assert result.exit_code == 1

# master specified does not match master of cluster
result = self.runner.invoke(ctl, ['remove', 'alpha'], input='''alpha
Yes I am aware
slave''')
result = self.runner.invoke(ctl, ['remove', 'alpha'], input='''alpha\nYes I am aware\nslave''')
assert result.exit_code == 1

# cluster specified on cmdline does not match verification prompt
result = self.runner.invoke(ctl, ['remove', 'alpha'], input='beta\nleader')
assert result.exit_code == 1

result = self.runner.invoke(ctl, ['remove', 'alpha'], input='''alpha
Yes I am aware
leader''')
result = self.runner.invoke(ctl, ['remove', 'alpha'], input='''alpha\nYes I am aware\nleader''')
assert result.exit_code == 0

@patch('patroni.etcd.Etcd.watch', Mock(return_value=None))
Expand Down

0 comments on commit e4005ac

Please sign in to comment.