File: test_api.py

package info (click to toggle)
flufl.lock 9.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: python: 847; makefile: 12
file content (10 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
import flufl.lock


def test_module_attributes_in_all():
    namespace = {}
    attributes = set(flufl.lock.__all__)
    exec('from flufl.lock import *', namespace)
    # __builtins__ is implicitly added to the namespace.
    del namespace['__builtins__']
    assert attributes == set(namespace)