def test_suitable_false_valid_type(self): obj = SubmitInputFormElementParser() result = obj.suitable("example", "submit") self.assertFalse(result)
def test_default_is_submitable(self): obj = SubmitInputFormElementParser() form_element = obj.parse(self.DEFAULT_TESTVALUE) self.assertFalse(form_element[0].is_submitable)
def test_suitable(self): obj = SubmitInputFormElementParser() result = obj.suitable("input", "submit") self.assertTrue(result)
def test_default_name(self): obj = SubmitInputFormElementParser() form_elements = obj.parse(self.DEFAULT_TESTVALUE) self.assertEqual(obj._default_name, form_elements[0].name)