102
ctx, err := testing.RunCommand(c, block.NewListCommandForTest(&mockListClient{}, nil), "--format", "json")
101
107
func (s *listCommandSuite) TestListJSON(c *gc.C) {
102
108
cmd := block.NewListCommandForTest(s.mock(), nil)
103
109
ctx, err := testing.RunCommand(c, cmd, "--format", "json")