File: test_pipe.py

package info (click to toggle)
python-aiostream 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 416 kB
  • sloc: python: 2,800; makefile: 5
file content (10 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from aiostream import stream, pipe


def test_pipe_module():
    for name in dir(stream):
        obj = getattr(stream, name)
        pipe_method = getattr(obj, "pipe", None)
        if pipe_method is None:
            continue
        assert getattr(pipe, name) == pipe_method