def test_edit_collaborators_must_open_editor_environment(self): self.useFixture(fixtures.EnvironmentVariable("EDITOR", "test-editor")) assertions._edit_developers({}) self.check_call_mock.assert_called_with(["test-editor", mock.ANY])
def test_edit_collaborators_must_open_editor(self): self.useFixture(fixtures.EnvironmentVariable('EDITOR', self.editor)) assertions._edit_developers({}) self.check_call_mock.assert_called_with([self.expected, mock.ANY])
def test_edit_collaborators_must_open_editor(self): self.useFixture(fixtures.EnvironmentVariable("EDITOR", self.editor)) assertions._edit_developers({}) self.check_call_mock.assert_called_with([self.expected, mock.ANY])