Ejemplo n.º 1
0
    def test_patches_to_commit_queue(self):
        expected_stdout = "http://example.com/197&action=edit\n"
        expected_stderr = "128 committer = \"Eric Seidel\" <*****@*****.**>\n"
        options = Mock()
        options.bugs = False
        self.assert_execute_outputs(PatchesToCommitQueue(), None, expected_stdout, expected_stderr, options=options)

        expected_stdout = "http://example.com/42\n"
        options.bugs = True
        self.assert_execute_outputs(PatchesToCommitQueue(), None, expected_stdout, expected_stderr, options=options)
Ejemplo n.º 2
0
    def test_patches_to_commit_queue(self):
        expected_stdout = "http://example.com/197&action=edit\n"
        expected_stderr = "128 committer = \"Eric Seidel\" <*****@*****.**>\n"
        options = Mock()
        options.bugs = False
        self.assert_execute_outputs(PatchesToCommitQueue(),
                                    None,
                                    expected_stdout,
                                    expected_stderr,
                                    options=options)

        expected_stdout = "http://example.com/42\n"
        options.bugs = True
        self.assert_execute_outputs(PatchesToCommitQueue(),
                                    None,
                                    expected_stdout,
                                    expected_stderr,
                                    options=options)