def test_ContainerSpec_verify_params_smoke(): s = ContainerSpec() assert not s.verify_params() s.Image = 'hello/release-123-456' assert s.verify_params() s.LogConfig = LogConfigSpec() assert s.verify_params()
def test_ContainerSpec_util_smoke(): s1 = ContainerSpec() s2 = s1.clone() assert s1 != s2 assert s1.equals(s2) s1.LogConfig = LogConfigSpec() s2.LogConfig = LogConfigSpec() s1.LogConfig.Type = 'syslogd' assert not s1.equals(s2)