File: test_paths.py

package info (click to toggle)
python-easydev 0.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 504 kB
  • sloc: python: 2,130; javascript: 49; makefile: 13
file content (27 lines) | stat: -rw-r--r-- 667 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
24
25
26
27
from easydev.paths import *
import os


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