def test_render_flag_only(self): d = DockerOpts() d.add('flagonly', None) assert "--flagonly" in d.to_s()
def test_strict_options(self): d = DockerOpts() d.add('strictmode', 'strict-formatting,enabled-because', strict=True) assert "--strictmode=strict-formatting,enabled-because" in d.to_s()
def configure_docker(): manager = DockerOpts() render('docker.defaults', '/etc/default/docker', {'opts': manager.to_s()})
def test_to_s(self): d = DockerOpts() d.add('foo', 'bar, baz') assert d.to_s() == "--foo=bar --foo=baz"
def test_to_s(self): d = DockerOpts() d.add("foo", "bar, baz") assert d.to_s() == "--foo=bar --foo=baz"