expects
Advanced tools
+1
-1
@@ -62,3 +62,3 @@ # -*- coding: utf-8 -*- | ||
| # The full version, including alpha/beta/rc tags. | ||
| release = '0.7.0' | ||
| release = '0.7.1' | ||
@@ -65,0 +65,0 @@ # The language for content autogenerated by Sphinx. Refer to documentation |
| Metadata-Version: 1.1 | ||
| Name: expects | ||
| Version: 0.7.0 | ||
| Version: 0.7.1 | ||
| Summary: Expressive and extensible TDD/BDD assertion library for Python | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/jaimegildesagredo/expects |
@@ -72,7 +72,9 @@ # -*- coding: utf-8 -* | ||
| return subject == ''.join(self._expected) | ||
| try: | ||
| for index, expected_item in enumerate(self._expected): | ||
| if not self._match_value(expected_item, subject[index]): | ||
| return False | ||
| except IndexError: | ||
| return False | ||
| for index, expected_item in enumerate(self._expected): | ||
| if not self._match_value(expected_item, subject[index]): | ||
| return False | ||
| return len(subject) == len(self._expected) | ||
@@ -79,0 +81,0 @@ |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: expects | ||
| Version: 0.7.0 | ||
| Version: 0.7.1 | ||
| Summary: Expressive and extensible TDD/BDD assertion library for Python | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/jaimegildesagredo/expects |
+1
-1
| [egg_info] | ||
| tag_svn_revision = 0 | ||
| tag_date = 0 | ||
| tag_build = | ||
| tag_svn_revision = 0 | ||
+1
-1
@@ -9,3 +9,3 @@ # -*- coding: utf-8 -*- | ||
| name='expects', | ||
| version='0.7.0', | ||
| version='0.7.1', | ||
| description='Expressive and extensible TDD/BDD assertion library for Python', | ||
@@ -12,0 +12,0 @@ long_description=long_description, |
@@ -31,2 +31,6 @@ # -*- coding: utf-8 -* | ||
| with it('fails if list contains fewer elements that the expected one'): | ||
| with failure("to contain exactly 'foo' and 'bar'"): | ||
| expect(['foo']).to(contain_exactly('foo', 'bar')) | ||
| with it('fails if list does not contain expected item'): | ||
@@ -33,0 +37,0 @@ with failure("to contain exactly 'foo'"): |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
2359451
0.01%4359
0.14%