summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs/fstab_tests.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:26 +0200
committerAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:26 +0200
commitff1408420159488a106492ccd11dd234967029b6 (patch)
tree473420cee1c5229a427ec4cafead1aa6c0a26800 /reconfigure/tests/configs/fstab_tests.py
Imported Upstream version 0.1.29
Diffstat (limited to 'reconfigure/tests/configs/fstab_tests.py')
-rw-r--r--reconfigure/tests/configs/fstab_tests.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/reconfigure/tests/configs/fstab_tests.py b/reconfigure/tests/configs/fstab_tests.py
new file mode 100644
index 0000000..9ffe19b
--- /dev/null
+++ b/reconfigure/tests/configs/fstab_tests.py
@@ -0,0 +1,34 @@
+from reconfigure.configs import FSTabConfig
+from base_test import BaseConfigTest
+
+
+class FSTabConfigTest (BaseConfigTest):
+ sources = {
+ None: """fs1\tmp1\text\trw\t1\t2
+fs2\tmp2\tauto\tnone\t0\t0
+"""
+ }
+ result = {
+ 'filesystems': [
+ {
+ 'device': 'fs1',
+ 'mountpoint': 'mp1',
+ 'type': 'ext',
+ 'options': 'rw',
+ 'freq': '1',
+ 'passno': '2'
+ },
+ {
+ 'device': 'fs2',
+ 'mountpoint': 'mp2',
+ 'type': 'auto',
+ 'options': 'none',
+ 'freq': '0',
+ 'passno': '0'
+ },
+ ]
+ }
+ config = FSTabConfig
+
+
+del BaseConfigTest