| 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 scm.py.""" | 6 """Unit tests for scm.py.""" |
| 7 | 7 |
| 8 from __future__ import with_statement | |
| 9 import logging | 8 import logging |
| 10 import os | 9 import os |
| 11 import sys | 10 import sys |
| 12 import unittest | 11 import unittest |
| 13 | 12 |
| 14 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | 13 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
| 15 | 14 |
| 16 from testing_support import fake_repos | 15 from testing_support import fake_repos |
| 17 from testing_support.super_mox import SuperMoxTestBase | 16 from testing_support.super_mox import SuperMoxTestBase |
| 18 | 17 |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 # Asserting the tree is not sufficient, svn status must come out clear too. | 455 # Asserting the tree is not sufficient, svn status must come out clear too. |
| 457 self.assertEquals('', self._capture(['status'])) | 456 self.assertEquals('', self._capture(['status'])) |
| 458 | 457 |
| 459 | 458 |
| 460 if __name__ == '__main__': | 459 if __name__ == '__main__': |
| 461 if '-v' in sys.argv: | 460 if '-v' in sys.argv: |
| 462 logging.basicConfig(level=logging.DEBUG) | 461 logging.basicConfig(level=logging.DEBUG) |
| 463 unittest.main() | 462 unittest.main() |
| 464 | 463 |
| 465 # vim: ts=2:sw=2:tw=80:et: | 464 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |