| OLD | NEW | 
|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python | 
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 owners.py.""" | 6 """Unit tests for owners.py.""" | 
| 7 | 7 | 
| 8 import os | 8 import os | 
| 9 import sys | 9 import sys | 
| 10 import unittest | 10 import unittest | 
| 11 | 11 | 
| 12 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) | 12 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | 
| 13 | 13 | 
| 14 import owners | 14 import owners | 
| 15 from tests import filesystem_mock | 15 from tests import filesystem_mock | 
| 16 | 16 | 
| 17 ben = 'ben@example.com' | 17 ben = 'ben@example.com' | 
| 18 brett = 'brett@example.com' | 18 brett = 'brett@example.com' | 
| 19 darin = 'darin@example.com' | 19 darin = 'darin@example.com' | 
| 20 john = 'john@example.com' | 20 john = 'john@example.com' | 
| 21 ken = 'ken@example.com' | 21 ken = 'ken@example.com' | 
| 22 peter = 'peter@example.com' | 22 peter = 'peter@example.com' | 
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 170 | 170 | 
| 171   def test_syntax_error__unknown_set(self): | 171   def test_syntax_error__unknown_set(self): | 
| 172     self.assert_syntax_error('set myfatherisbillgates\n') | 172     self.assert_syntax_error('set myfatherisbillgates\n') | 
| 173 | 173 | 
| 174   def test_syntax_error__bad_email(self): | 174   def test_syntax_error__bad_email(self): | 
| 175     self.assert_syntax_error('ben\n') | 175     self.assert_syntax_error('ben\n') | 
| 176 | 176 | 
| 177 | 177 | 
| 178 if __name__ == '__main__': | 178 if __name__ == '__main__': | 
| 179   unittest.main() | 179   unittest.main() | 
| OLD | NEW | 
|---|