summaryrefslogtreecommitdiffstats
path: root/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py
blob: 94b74dd1319d0d2d5e8a851fd4ed91e393baca05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import unittest
import lxml.etree
from mock import Mock, MagicMock, patch
from Bcfg2.Client.Tools.POSIX.Permissions import *
from Test__init import get_posix_object

def call(*args, **kwargs):
    """ the Mock call object is a fairly recent addition, but it's
    very very useful, so we create our own function to create Mock
    calls """
    return (args, kwargs)

def get_permissions_object(posix=None):
    if posix is None:
        posix = get_posix_object()
    return POSIXPermissions(posix.logger, posix.setup, posix.config)

class TestPOSIXPermissions(unittest.TestCase):
    # nothing to test!
    pass