PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/logilab-astng-0.23.1/test/data2/suppliermodule_test.py

#
Python | 32 lines | 8 code | 4 blank | 20 comment | 0 complexity | 155d4952f92462f3ad5177b590ca286d MD5 | raw file
 1# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 2# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 3# copyright 2003-2010 Sylvain Thenault, all rights reserved.
 4# contact mailto:thenault@gmail.com
 5#
 6# This file is part of logilab-astng.
 7#
 8# logilab-astng is free software: you can redistribute it and/or modify it
 9# under the terms of the GNU Lesser General Public License as published by the
10# Free Software Foundation, either version 2.1 of the License, or (at your
11# option) any later version.
12#
13# logilab-astng is distributed in the hope that it will be useful, but
14# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
16# for more details.
17#
18# You should have received a copy of the GNU Lesser General Public License along
19# with logilab-astng. If not, see <http://www.gnu.org/licenses/>.
20""" file suppliermodule.py """
21
22class NotImplemented(Exception):
23    pass
24
25class Interface:
26    def get_value(self):
27        raise NotImplemented()
28
29    def set_value(self, value):
30        raise NotImplemented()
31
32class DoNothing : pass