File: test_directory_modifiers.py

package info (click to toggle)
python-setoptconf 0.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 252 kB
  • sloc: python: 1,427; sh: 7; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import setoptconf as soc


def test_home_directory():
    test = soc.HomeDirectory('foo.bar')
    result = test()

    # Can't really predict the output, as it's environment-dependent.
    # Just make sure we have something that looks like a path to our file.
    assert result.startswith('/')
    assert result.endswith('foo.bar')


def test_config_directory():
    test = soc.ConfigDirectory('foo.bar')
    result = test()

    # Can't really predict the output, as it's environment-dependent.
    # Just make sure we have something that looks like a path to our file.
    assert result.startswith('/')
    assert result.endswith('foo.bar')