Esempio n. 1
0
//It should get a single chapter from a book
func (s *TestSuite) TestGetSingleChapterPassage(c *C) {
	//Given a Passage Client
	client := client.PassageClient{Host: s.host}
	passage, err := client.GetSingleChapterPassage("NIV", "Matthew", 1)
	c.Assert(err, Equals, nil)
	c.Assert(len(passage.Verses), Equals, 25)
}
Esempio n. 2
0
//It should get a passage from a different version
func (s *TestSuite) TestGetSingleVerseDiffVersion(c *C) {
	client := client.PassageClient{Host: s.host}
	passage, err := client.GetSingleChapterPassage("ESV", "Matthew", 1)
	c.Assert(err, Equals, nil)
	c.Assert(len(passage.Verses), Equals, 25)
}