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

# Source Code for Module cssutils.tests.test_cssrulelist

     1  """
     2  testcases for cssutils.css.CSSRuleList
     3  """
     4  __author__ = '$LastChangedBy: cthedot $'
     5  __date__ = '$LastChangedDate: 2007-12-27 15:20:14 +0100 (Do, 27 Dez 2007) $'
     6  __version__ = '$LastChangedRevision: 733 $'
     7
     8  import basetest
     9  import cssutils
    10
    11 -class CSSRuleListTestCase(basetest.BaseTestCase):
    12
    13 -    def test_init(self):
    14          "CSSRuleList init"
    15          r = cssutils.css.CSSRuleList()
    16          self.assertEqual(0, r.length)
    17          self.assertEqual(None, r.item(2))
    18
    19          # subclasses list but all setting options like append, extend etc
    20          # need to be added to an instance of this class by a using class!
    21          self.assertRaises(NotImplementedError, r.append, 1)
    22
    23
    24  if __name__ == '__main__':
    25      import unittest
    26      unittest.main()
    27