Debian Codegraph @

src/lazr/delegates/tests/test_api.py

raw symbols SCIP
1 # Copyright 2013-2015 Canonical Ltd. All rights reserved.
2 #
3 # This file is part of lazr.delegates.
4 #
5 # lazr.delegates is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation, version 3 of the License.
8 #
9 # lazr.delegates is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 # License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with lazr.delegates. If not, see <http://www.gnu.org/licenses/>.
16
17 """Test the new API."""
18
19 import unittest
20
21 from lazr.delegates import delegate_to
22
23
24 class TestAPI(unittest.TestCase):
25 """Test various corner cases in the API."""
26
27 def test_no_interfaces(self):
28 self.assertRaises(TypeError, delegate_to)