pypiserver/tests/doubles.py

11 lines
236 B
Python
Raw Normal View History

"""Test doubles."""
class Namespace:
"""Simple namespace."""
def __init__(self, **kwargs):
"""Instantiate the namespace with the provided kwargs."""
for k, v in kwargs.items():
setattr(self, k, v)