OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2010 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 gcl.py.""" | 6 """Unit tests for gcl.py.""" |
7 | 7 |
8 # pylint is too confused. | 8 # pylint is too confused. |
9 # pylint: disable=E1101,E1103,E1120,W0212,W0403 | 9 # pylint: disable=E1101,E1103,E1120,W0212,W0403 |
10 | 10 |
11 # Fixes include path. | 11 # Fixes include path. |
12 from super_mox import mox, SuperMoxTestBase | 12 from super_mox import mox, SuperMoxTestBase |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 self.assertEquals(retval, 0) | 561 self.assertEquals(retval, 0) |
562 self.assertEquals(change_info.description, | 562 self.assertEquals(change_info.description, |
563 'deescription\n\nCommitted: http://view/12345') | 563 'deescription\n\nCommitted: http://view/12345') |
564 self.assertTrue(change_info._deleted) | 564 self.assertTrue(change_info._deleted) |
565 self.assertTrue(change_info._closed) | 565 self.assertTrue(change_info._closed) |
566 | 566 |
567 | 567 |
568 if __name__ == '__main__': | 568 if __name__ == '__main__': |
569 import unittest | 569 import unittest |
570 unittest.main() | 570 unittest.main() |
OLD | NEW |