OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # pylint: disable=import-error,print-statement,relative-import |
| 6 |
| 7 """Unit tests for idl_definitions.py.""" |
| 8 |
| 9 import unittest |
| 10 |
| 11 from idl_definitions import IdlAttribute |
| 12 |
| 13 |
| 14 class IdlAttributeTest(unittest.TestCase): |
| 15 |
| 16 def test_no_params(self): |
| 17 try: |
| 18 IdlAttribute() |
| 19 except Exception as exception: # pylint: disable=broad-except |
| 20 self.fail('Creating an IdlAttribute with no parameters raised' |
| 21 'an exception: {}.'.format(exception)) |
OLD | NEW |