func (ts *TestSuite) TestTimeZones(c *C) { repo := VL.NewRepo("posts") posts, _ := repo.All() for _, post := range posts { name, offset := post.PublishedOn.Zone() if offset == 0 { c.Errorf("got offset 0 in zone %s for %s, expected not 0", name, post.Title) } } }
func (ts *TestSuite) TestPagesLoad(c *C) { VL.NewRepo("pages") c.Succeed() }
func (ts *TestSuite) TestPostsLoad(c *C) { VL.NewRepo("posts") c.Succeed() }