Skip to main content

Test equality of unordered collections in pytest

Project description

pytest-unordered

Build Status Coverage Status

Test equality of unordered collections in pytest.

Installation

pip install pytest-unordered

Usage

from pytest_unordered import unordered

def test_unordered():
    assert [3, 2, {1: ['b', 'a']}] == unordered({1: unordered('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.3.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

pytest_unordered-0.3.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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