Package cssutils :: Package tests :: Module test_cssrulelist |
[hide private]
[frames] | no frames]

# Source Code for Module cssutils.tests.test_cssrulelist

     1  """Testcases for cssutils.css.CSSRuleList"""
     2  __version__ = '$Id: test_cssrulelist.py 1116 2008-03-05 13:52:23Z cthedot $'
     3
     4  import basetest
     5  import cssutils
     6
     7 -class CSSRuleListTestCase(basetest.BaseTestCase):
     8
     9 -    def test_init(self):
    10          "CSSRuleList init"
    11          r = cssutils.css.CSSRuleList()
    12          self.assertEqual(0, r.length)
    13          self.assertEqual(None, r.item(2))
    14
    15          # subclasses list but all setting options like append, extend etc
    16          # need to be added to an instance of this class by a using class!
    17          self.assertRaises(NotImplementedError, r.append, 1)
    18
    19
    20  if __name__ == '__main__':
    21      import unittest
    22      unittest.main()
    23