Example #1
0
 def test_options_getter_with_option_with_value_and_none_option(self):
     options = {'foo': 'bar', 'foo1': None}
     wrapper = MountCifsWrapper(self.server, self.share,
                                self.mountpoint)
     wrapper.options = options
     self._check_options(wrapper.options, **options)
Example #2
0
 def test_options_setter(self):
     wrapper = MountCifsWrapper(self.server, self.share, self.mountpoint)
     options = {'foo': 'bar'}
     wrapper.options = options
     self.assertEqual(wrapper._options, options)
Example #3
0
 def test_options_getter_with_option_that_is_none(self):
     option = 'foo'
     options = {option: None}
     wrapper = MountCifsWrapper(self.server, self.share, self.mountpoint)
     wrapper.options = options
     self._check_options(wrapper.options, **options)