summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs/group_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/tests/configs/group_tests.py')
-rw-r--r--reconfigure/tests/configs/group_tests.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/reconfigure/tests/configs/group_tests.py b/reconfigure/tests/configs/group_tests.py
new file mode 100644
index 0000000..b53dc5c
--- /dev/null
+++ b/reconfigure/tests/configs/group_tests.py
@@ -0,0 +1,30 @@
+from reconfigure.configs import GroupConfig
+from base_test import BaseConfigTest
+
+
+class GroupConfigTest (BaseConfigTest):
+ sources = {
+ None: """sys:x:3:
+adm:x:4:eugeny
+"""
+ }
+ result = {
+ 'groups': [
+ {
+ 'name': 'sys',
+ 'password': 'x',
+ 'gid': '3',
+ 'users': '',
+ },
+ {
+ 'name': 'adm',
+ 'password': 'x',
+ 'gid': '4',
+ 'users': 'eugeny',
+ },
+ ]
+ }
+ config = GroupConfig
+
+
+del BaseConfigTest