def test_has_css_class_draggable(self): html = fromstring(draggable(self.brain, None)) self.assertEqual("draggable", html.attrib.get('class'))
def test_id_with_prefix_draggable(self): html = fromstring(draggable(self.brain, None)) self.assertEqual("draggable-%s" % self.folder.getId(), html.attrib.get('id'))