diff options
| author | Josh Soref <jsoref@users.noreply.github.com> | 2015-12-02 23:55:50 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-03 12:49:03 -0500 |
| commit | 8897f4b0df30f385d0a95156f8a18b4b25cea37e (patch) | |
| tree | 06b90550ea4c2481adbe89a918817d5b1726e65e /tests/utils_tests | |
| parent | 519cfbb4e8f388664347fcc708e44148148ed6f8 (diff) | |
[1.9.x] Fixed many spelling mistakes in code, comments, and docs.
Backport of 93452a70e8a62c7408eeded444f5088d4a26212d from master
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/files/strip_tags2.txt | 2 | ||||
| -rw-r--r-- | tests/utils_tests/test_http.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils_tests/files/strip_tags2.txt b/tests/utils_tests/files/strip_tags2.txt index 331af904ea..6e458f7f91 100644 --- a/tests/utils_tests/files/strip_tags2.txt +++ b/tests/utils_tests/files/strip_tags2.txt @@ -29,7 +29,7 @@ Fragments <center>  </center> Fragments encompass both layout resource and Java source. Hence, unlike ``, they allow us to reuse the View components along with their functionality, if needed. Fragments were first introduced in Honeycomb(API 11), living under the `android.app` package. -**Note**: API 11 implies that Fragments have no support for devices less than Honeycomb and, for the record, as of writing this post, [more than 50% of Android devices worldwide run versions of Android below Honeycomb](http://developer.android.com/about/dashboards/index.html). Developer dissapointed? You don't have to be, cause google has been cautious enough to add the Fragment APIs to the support library. Yay! +**Note**: API 11 implies that Fragments have no support for devices less than Honeycomb and, for the record, as of writing this post, [more than 50% of Android devices worldwide run versions of Android below Honeycomb](http://developer.android.com/about/dashboards/index.html). Developer disappointed? You don't have to be, cause google has been cautious enough to add the Fragment APIs to the support library. Yay! In the support library Fragment APIs sit in the `android.support.v4.app` package. This post assumes that your `minSdk` support is below API 11. Hence we concentrate on the Fragment APIs of the support library. diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index baa126d423..f90486003a 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -75,7 +75,7 @@ class TestUtilsHttp(unittest.TestCase): for bad_url in ('http://example.com', 'http:///example.com', 'https://example.com', - 'ftp://exampel.com', + 'ftp://example.com', r'\\example.com', r'\\\example.com', r'/\\/example.com', @@ -96,7 +96,7 @@ class TestUtilsHttp(unittest.TestCase): self.assertFalse(http.is_safe_url(bad_url, host='testserver'), "%s should be blocked" % bad_url) for good_url in ('/view/?param=http://example.com', '/view/?param=https://example.com', - '/view?param=ftp://exampel.com', + '/view?param=ftp://example.com', 'view/?param=//example.com', 'https://testserver/', 'HTTPS://testserver/', |
