Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: media/tools/bug_hunter/bug_hunter_unittest.py

Issue 9452025: Adding Milestone in chromium bug hunter output file and email. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: change year in the header Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/tools/bug_hunter/bug_hunter_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit Tests for bug hunter.""" 6 """Unit Tests for bug hunter."""
7 7
8 import logging 8 import logging
9 from optparse import Values 9 from optparse import Values
10 import smtplib 10 import smtplib
11 import sys 11 import sys
12 import unittest 12 import unittest
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 def testStripHTMLEmpty(self): 175 def testStripHTMLEmpty(self):
176 self.assertEquals(BugHunterUtils.StripHTML(''), '') 176 self.assertEquals(BugHunterUtils.StripHTML(''), '')
177 177
178 def testSendEmail(self): 178 def testSendEmail(self):
179 smtplib.SMTP = MockSmtp 179 smtplib.SMTP = MockSmtp
180 self.assertEqual(BugHunterUtils.SendEmail('message', 'sender_email_address', 180 self.assertEqual(BugHunterUtils.SendEmail('message', 'sender_email_address',
181 'receivers_email_addresses', 181 'receivers_email_addresses',
182 'subject'), 182 'subject'),
183 True) 183 True)
OLDNEW
« no previous file with comments | « media/tools/bug_hunter/bug_hunter_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698