github.com/connyay/libcompose@v0.4.0/integration/stop_test.go (about) 1 package integration 2 3 import ( 4 "fmt" 5 6 . "gopkg.in/check.v1" 7 ) 8 9 func (s *CliSuite) TestStop(c *C) { 10 p := s.ProjectFromText(c, "up", SimpleTemplate) 11 12 name := fmt.Sprintf("%s_%s_1", p, "hello") 13 14 cn := s.GetContainerByName(c, name) 15 c.Assert(cn, NotNil) 16 c.Assert(cn.State.Running, Equals, true) 17 18 s.FromText(c, p, "stop", SimpleTemplate) 19 20 cn = s.GetContainerByName(c, name) 21 c.Assert(cn, NotNil) 22 c.Assert(cn.State.Running, Equals, false) 23 }