File: test_compat.py

package info (click to toggle)
python-grpclib 0.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 676 kB
  • sloc: python: 6,864; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import importlib


def test_const_imports():
    const = importlib.import_module('grpclib.const')
    assert getattr(const, 'Cardinality')
    assert getattr(const, 'Handler')


def test_client_imports():
    client = importlib.import_module('grpclib.client')
    assert getattr(client, 'Channel')
    assert getattr(client, 'UnaryUnaryMethod')
    assert getattr(client, 'UnaryStreamMethod')
    assert getattr(client, 'StreamUnaryMethod')
    assert getattr(client, 'StreamStreamMethod')