forget the past.
forget the past.
# -*- 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()