Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

expects

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expects - npm Package Compare versions

Comparing version
0.7.0
to
0.7.1
+1
-1
docs/conf.py

@@ -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 @@

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

[egg_info]
tag_svn_revision = 0
tag_date = 0
tag_build =
tag_svn_revision = 0

@@ -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'"):