예제 #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)
예제 #4
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'))
예제 #5
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'))
예제 #6
0
    def test_input_type_is_checkbox(self):
        html = fromstring(path_checkbox(self.brain, None))

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