Beispiel #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)
Beispiel #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)
Beispiel #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)