def test_make_vol_opt_multi_opts(self): assert_equal( uut.make_vol_opt('/hostdir', '/contdir', ['ro', 'z']), '--volume=/hostdir:/contdir:ro,z' )
def test_make_vol_opt_one_opt(self): assert_equal( uut.make_vol_opt('/hostdir', '/contdir', 'ro'), '--volume=/hostdir:/contdir:ro' )
def test_make_vol_opt_no_opts(self): assert_equal( uut.make_vol_opt('/hostdir', '/contdir'), '--volume=/hostdir:/contdir' )
def test_make_vol_opt_multi_opts(self): assert_equal(uut.make_vol_opt("/hostdir", "/contdir", ["ro", "z"]), "--volume=/hostdir:/contdir:ro,z")
def test_make_vol_opt_one_opt(self): assert_equal(uut.make_vol_opt("/hostdir", "/contdir", "ro"), "--volume=/hostdir:/contdir:ro")
def test_make_vol_opt_no_opts(self): assert_equal(uut.make_vol_opt("/hostdir", "/contdir"), "--volume=/hostdir:/contdir")