Пример #1
0
    def test_has_css_class_draggable(self):
        html = fromstring(draggable(self.brain, None))

        self.assertEqual("draggable", html.attrib.get('class'))
Пример #2
0
    def test_id_with_prefix_draggable(self):
        html = fromstring(draggable(self.brain, None))

        self.assertEqual("draggable-%s" % self.folder.getId(),
                         html.attrib.get('id'))