summaryrefslogtreecommitdiff
path: root/webtest/utils.py
diff options
context:
space:
mode:
authorGeorges Dubus <georges.dubus@compiletoi.net>2013-02-23 18:32:34 +0100
committerGeorges Dubus <georges.dubus@compiletoi.net>2013-02-23 18:32:34 +0100
commit594aa497d2e421c22df9c8f604d7e6bf45fd2a35 (patch)
tree90e52c5c9229ea3160590b931511885a60abcf62 /webtest/utils.py
parentb58cb07681ebfe8b53cfca3854e7445159355488 (diff)
downloadwebtest-594aa497d2e421c22df9c8f604d7e6bf45fd2a35.tar.gz
Rewrote TestResponse._find_element.
Removed the anchor argument of TestResponse.click and the button argument of TestResponse.clickbutton. Removed utils.parse_attrs.
Diffstat (limited to 'webtest/utils.py')
-rw-r--r--webtest/utils.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/webtest/utils.py b/webtest/utils.py
index f78ad33..34bf2b3 100644
--- a/webtest/utils.py
+++ b/webtest/utils.py
@@ -80,21 +80,6 @@ def encode_params(params, content_type):
return params
-_attr_re = re.compile(
- r'([^= \n\r\t]+)[ \n\r\t]*(?:=[ \n\r\t]*(?:"([^"]*)"|\'([^\']*)'
- r'\'|([^"\'][^ \n\r\t>]*)))?', re.S)
-
-
-def parse_attrs(text):
- attrs = {}
- for match in _attr_re.finditer(text):
- attr_name = match.group(1).lower()
- attr_body = match.group(2) or match.group(3)
- attr_body = unescape_html(attr_body or '')
- attrs[attr_name] = attr_body
- return attrs
-
-
def make_pattern(pat):
"""Find element pattern can be a regex or a callable."""
if pat is None: