Exemple #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'))
Exemple #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'))
Exemple #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)