# HG changeset patch # User Sylvain Thénault # Date 1478704103 -3600 # Node ID 42461734c3e806955eae7c33e955b435e1874f36 # Parent c5c041ba35b80dc360d9b43a0df99fd6de08ad12 [test] Use bare unittest in unittest_rtags diff -r c5c041ba35b8 -r 42461734c3e8 cubicweb/test/unittest_rtags.py --- a/cubicweb/test/unittest_rtags.py Wed Nov 09 16:07:10 2016 +0100 +++ b/cubicweb/test/unittest_rtags.py Wed Nov 09 16:08:23 2016 +0100 @@ -1,4 +1,4 @@ -# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -15,13 +15,12 @@ # # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . -""" -""" -from logilab.common.testlib import TestCase, unittest_main +import unittest + from cubicweb.rtags import RelationTags, RelationTagsSet, RelationTagsDict -class RelationTagsTC(TestCase): +class RelationTagsTC(unittest.TestCase): def test_rtags_expansion(self): rtags = RelationTags() @@ -92,4 +91,4 @@ {'key1': 'val1', 'key2': 'val2', 'key3': 'val0', 'key4': 'val4'}) if __name__ == '__main__': - unittest_main() + unittest.main()