8784: Fix test for latest firefox.
[arvados.git] / services / fuse / tests / test_mount_type.py
1 import logging
2 import subprocess
3
4 from .integration_test import IntegrationTest
5
6 logger = logging.getLogger('arvados.arv-mount')
7
8
9 class MountTypeTest(IntegrationTest):
10     @IntegrationTest.mount(argv=["--subtype=arv-mount-test"])
11     def test_mount_type(self):
12         self.pool_test(self.mnt)
13
14     @staticmethod
15     def _test_mount_type(self, mnt):
16         self.assertEqual(["fuse.arv-mount-test"], [
17             toks[4]
18             for toks in [
19                 line.split(' ')
20                 for line in subprocess.check_output("mount").split("\n")
21             ]
22             if len(toks) > 4 and toks[2] == mnt
23         ])