mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-01 19:24:29 +08:00
14 lines
300 B
Python
14 lines
300 B
Python
from collections import (
|
|
Counter,
|
|
namedtuple,
|
|
)
|
|
|
|
MockTransaction = namedtuple("MockTransaction", "user")
|
|
|
|
|
|
def have_same_elements(items, expected_items):
|
|
"""
|
|
Assert that items and expected_items contain the same elements.
|
|
"""
|
|
return Counter(items) == Counter(expected_items)
|