test/unittest_pyplugin.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 09 Jun 2008 13:39:44 +0200
changeset 4 6ff5e87d288a
parent 0 7710b138d4eb
permissions -rw-r--r--
change position on __future__ import for compatibility

# -*- coding: ISO-8859-1 -*-
"""Unittests for python plugin
"""

__revision__ = '$Id: unittest_pyplugin.py,v 1.1 2004-09-30 08:32:22 adim Exp $'

import unittest
from oobrother.plugins.python import compare_message

class PypluginTC(unittest.TestCase):
    """Test case for python plugin"""

    def test_pylint_sigle_sort(self):
        """Tests the pylint table sort method"""
        test_list = ['E', 'W', 'C', 'E', 'I', 'F', 'W', 'R', 'E']
        expected = ['E', 'E', 'E', 'W', 'W', 'R', 'C', 'I', 'F']
        test_list.sort(compare_message)
        self.assertEquals(test_list, expected)


if __name__ == '__main__': 
    unittest.main()