示例#1
0
    def test_value_is_path_to_object(self):
        html = fromstring(path_checkbox(self.brain, None))

        self.assertEqual('/'.join(self.folder.getPhysicalPath()),
                         html.attrib.get('value'))
示例#2
0
    def test_title_has_prefix(self):
        html = fromstring(path_checkbox(self.brain, None))

        self.assertEqual('Select %s' % self.folder.Title(),
                         html.attrib.get('title'))
示例#3
0
    def test_input_type_is_checkbox(self):
        html = fromstring(path_checkbox(self.brain, None))

        self.assertEqual('checkbox', html.type)
    def test_value_is_path_to_object(self):
        html = fromstring(path_checkbox(self.brain, None))

        self.assertEqual(
            '/'.join(self.folder.getPhysicalPath()),
            html.attrib.get('value'))
    def test_title_has_prefix(self):
        html = fromstring(path_checkbox(self.brain, None))

        self.assertEqual(
            'Select %s' % self.folder.Title(),
            html.attrib.get('title'))
    def test_input_type_is_checkbox(self):
        html = fromstring(path_checkbox(self.brain, None))

        self.assertEqual('checkbox', html.type)