Beispiel #1
0
 def test_normalize_duplicate_extra_flags(self, flags):
     result = prepare._normalize_mount_flags(flags, extras=['rw', 'discard'])
     assert sorted(result.split(',')) == ['auto', 'discard', 'exec', 'rw']
Beispiel #2
0
 def test_normalize_strings_duplicate_flags(self, flags):
     result = sorted(prepare._normalize_mount_flags(flags, extras=['discard','rw']).split(','))
     assert ','.join(result) == 'auto,discard,exec,rw'
Beispiel #3
0
 def test_normalize_strings(self, flags):
     result = sorted(prepare._normalize_mount_flags(flags).split(','))
     assert ','.join(result) == 'auto,exec,rw'
Beispiel #4
0
 def test_normalize_strings_duplicate_flags(self, flags):
     result = sorted(
         prepare._normalize_mount_flags(flags, extras=['discard',
                                                       'rw']).split(','))
     assert ','.join(result) == 'auto,discard,exec,rw'
Beispiel #5
0
 def test_normalize_duplicate_extra_flags(self, flags):
     result = prepare._normalize_mount_flags(flags,
                                             extras=['rw', 'discard'])
     assert sorted(result.split(',')) == ['auto', 'discard', 'exec', 'rw']
Beispiel #6
0
 def test_normalize_strings(self, flags):
     result = sorted(prepare._normalize_mount_flags(flags).split(','))
     assert ','.join(result) == 'auto,exec,rw'
 def test_normalize_strings(self, flags):
     result = prepare._normalize_mount_flags(flags)
     assert result == 'rw,auto,exec'