[blivet:master 6/6] Tests NTFS labeling.

mulhern amulhern at redhat.com
Fri Dec 5 16:08:36 UTC 2014


It can be tested, since NTFS filesystem can be created.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 tests/formats_test/labeling_test.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/formats_test/labeling_test.py b/tests/formats_test/labeling_test.py
index 8ac2e9b..ef69278 100755
--- a/tests/formats_test/labeling_test.py
+++ b/tests/formats_test/labeling_test.py
@@ -90,6 +90,10 @@ class MethodsTestCase(unittest.TestCase):
             if issubclass(klass, fs.FS) and not klass.labeling() and not issubclass(klass, fs.NFS):
                 self.assertEqual(klass(device="/dev", label=label).label, label, msg=name)
 
+class NTFSTestCase(fslabeling.CompleteLabelingAsRoot):
+    _fs_class = fs.NTFS
+    _invalid_label = "n" * 129
+
 class XFSTestCase(fslabeling.CompleteLabelingAsRoot):
     _fs_class = fs.XFS
     _invalid_label = "root filesystem"
-- 
1.9.3



More information about the anaconda-patches mailing list