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


Release history Release notifications

Download files

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

Files for pytest-unordered, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest-unordered-0.1.0.zip (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page