File: test_attrdict.py

package info (click to toggle)
python-libconf 2.0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: python: 875; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 181 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
import libconf


# Tests for AttrDict behavior
#############################

def test_attrdict_hasattr():
    d = libconf.AttrDict()
    assert hasattr(d, 'no_such_attr') == False