hugolib: Add a test assertion for IsTranslated

See #2812
This commit is contained in:
Bjørn Erik Pedersen 2016-12-21 10:17:05 +01:00
parent 1eb079543f
commit 1881f60a16

View file

@ -213,6 +213,8 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) {
}
enSite := sites.Sites[0]
enSiteHome := enSite.getPage(KindHome)
require.True(t, enSiteHome.IsTranslated())
assert.Equal(t, "en", enSite.Language.Lang)