Esempio n. 1
0
    def test_args_parsing(self):
        expected_logs = """MockWatchList: determine_cc_and_messages
No bug was updated because no id was given.
Result of watchlist: cc "[email protected], [email protected], [email protected]" messages "Message1.

Message2."
"""
        self.assert_execute_outputs(ApplyWatchListLocal(), [''], expected_logs=expected_logs)
Esempio n. 2
0
    def test_args_parsing_with_bug(self):
        expected_logs = """MockWatchList: determine_cc_and_messages
MOCK bug comment: bug_id=50002, cc=set(['*****@*****.**', '*****@*****.**', '*****@*****.**']), see_also=None
--- Begin comment ---
Message1.

Message2.
--- End comment ---\n\n"""
        self.assert_execute_outputs(ApplyWatchListLocal(), ['50002'], expected_logs=expected_logs)
Esempio n. 3
0
 def test_args_parsing_with_two_bugs(self):
     self._assertRaisesRegexp(Exception, 'Too many arguments given: 1234 5678', self.assert_execute_outputs, ApplyWatchListLocal(), ['1234', '5678'])
 def test_args_parsing(self):
     expected_stderr = 'MockWatchList: determine_cc_and_messages\n'
     self.assert_execute_outputs(ApplyWatchListLocal(), [''],
                                 expected_stderr=expected_stderr)