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 os | 6 import os |
7 import tempfile | 7 import tempfile |
8 import unittest | 8 import unittest |
9 | 9 |
10 import webforms_aggregator | 10 import webforms_aggregator |
11 | 11 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 c = webforms_aggregator.ThreadedCrawler(self.url_file.name) | 47 c = webforms_aggregator.ThreadedCrawler(self.url_file.name) |
48 self.assertNotEqual( | 48 self.assertNotEqual( |
49 c.Run(), -1, | 49 c.Run(), -1, |
50 msg='Threaded crawler could not find the reg page from the URLs file') | 50 msg='Threaded crawler could not find the reg page from the URLs file') |
51 | 51 |
52 | 52 |
53 if __name__ == '__main__': | 53 if __name__ == '__main__': |
54 suite = unittest.TestLoader().loadTestsFromTestCase( | 54 suite = unittest.TestLoader().loadTestsFromTestCase( |
55 WebformsAggregatorTest) | 55 WebformsAggregatorTest) |
56 unittest.TextTestRunner(verbosity=2).run(suite) | 56 unittest.TextTestRunner(verbosity=2).run(suite) |
OLD | NEW |