Skip to main content

Test equality of unordered sequences of unhashable items

Project description

pytest-unordered

Test equality of unordered sequences of unhashable items.

Installation

pip install pytest-unordered

Usage

from pytest_unordered import unordered

def test_unordered():
    assert [3, 2, {1: ['a', 'b']}] == unordered([{1: ['a', 'b']}, 2, 3])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-unordered-0.1.0.zip (5.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page