| OLD | NEW |
| 1 #!/usr/bin/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 import unittest | 6 import unittest |
| 7 | 7 |
| 8 from test_expectations import TestExpectations | 8 from test_expectations import TestExpectations |
| 9 | 9 |
| 10 | 10 |
| 11 class TestTestExpectations(unittest.TestCase): | 11 class TestTestExpectations(unittest.TestCase): |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 self.assertEquals(TestExpectations.ExtractTestOrDirectoryName(line), | 50 self.assertEquals(TestExpectations.ExtractTestOrDirectoryName(line), |
| 51 'media/track/') | 51 'media/track/') |
| 52 | 52 |
| 53 def testExtractTestOrDirectoryNameWithException(self): | 53 def testExtractTestOrDirectoryNameWithException(self): |
| 54 self.assertRaises(ValueError, | 54 self.assertRaises(ValueError, |
| 55 TestExpectations.ExtractTestOrDirectoryName, 'Foo') | 55 TestExpectations.ExtractTestOrDirectoryName, 'Foo') |
| 56 | 56 |
| 57 | 57 |
| 58 if __name__ == '__main__': | 58 if __name__ == '__main__': |
| 59 unittest.main() | 59 unittest.main() |
| OLD | NEW |