File: test_paths.py

package info (click to toggle)
python-easydev 0.13.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: python: 1,904; makefile: 116; javascript: 49
file content (29 lines) | stat: -rw-r--r-- 669 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os

from easydev.paths import *


def test_get_share_directory_path():
    get_shared_directory_path("easydev")
    try:
        get_shared_directory_path("dummydummy")
        assert False
    except:
        assert True


def test_get_share_directories():
    a = get_shared_directories("easydev", "themes")


def test_get_share_file():
    f = get_share_file("easydev", os.sep.join(["themes", "standard"]), "theme.conf")


def test_gsf():
    f = gsf("easydev", os.sep.join(["themes", "standard"]), "theme.conf")
    try:
        f = gsf("easydev", os.sep.join(["themes", "standard"]), "theme.conf.dummy")
        assert False
    except:
        assert True