File: asserts.py

package info (click to toggle)
python-kgb 7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 532 kB
  • sloc: python: 4,466; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Independent assertion functions.

These assertion functions can be used in pytest or in other places where
:py:class:`kgb.SpyAgency` can't be mixed.

Version Added:
    7.0
"""

from __future__ import unicode_literals

from kgb.agency import SpyAgency


_agency = SpyAgency()

__all__ = []


for name in vars(SpyAgency):
    if name.startswith('assert_'):
        globals()[name] = getattr(_agency, name)
        __all__.append(name)