Example #1
0
    def test__get_helper_ok(self):
        share = cont_fakes.fake_share(share_proto='CIFS')
        expected = protocol_helper.DockerCIFSHelper(None)

        actual = self._driver._get_helper(share)

        self.assertEqual(type(expected), type(actual))
Example #2
0
 def setUp(self):
     super(DockerCIFSHelperTestCase, self).setUp()
     self._helper = mock.Mock()
     self.fake_conf = mock.Mock()
     self.fake_conf.container_cifs_guest_ok = "yes"
     self.DockerCIFSHelper = protocol_helper.DockerCIFSHelper(
         self._helper, share=fake_share(), config=self.fake_conf)