Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Proposed tests structure

  • Loading branch information...
commit 66dc4ae57781f6608738859e2cac12b4d7e2727f 1 parent d6b86c0
@char0n char0n authored
View
7 pybrowscap/loader/__init__.py
@@ -117,9 +117,4 @@ def replace_defaults(line, defaults):
ua_regex = '^%s$' % ua_regex
browscap_data.update({ua_regex: line})
regex_cache.append(re.compile(ua_regex))
- return Browscap(browscap_data, regex_cache)
-
-
-browscap = load_file('/var/projects/python/pybrowscap/browscap.csv')
-browser = browscap.search('Mozilla/5.0 (X11; Linux i686 on x86_64; rv:5.0a2) Gecko/20110524 Firefox/5.0a2')
-print repr(browser.features())
+ return Browscap(browscap_data, regex_cache)
View
0  tests/__init__.py
No changes.
View
0  browscap.csv → tests/data/browscap.csv
File renamed without changes
View
0  tests/test_browser.py
No changes.
View
0  tests/test_downloader.py
No changes.
View
2  tests/test_loader.py
@@ -0,0 +1,2 @@
+__author__ = 'char0n'
+
Please sign in to comment.
Something went wrong with that request. Please try again.