Adds tests for AlbumDatabase

This commit is contained in:
2016-01-21 19:34:35 +01:00
parent ef458eaaea
commit 40e1e55215
4 changed files with 60 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ func (s *AlbumDescriptionGetterSuite) TestGet(c *C) {
for _, a := range albumsDataTest {
aStripped := StripNonCsvField(a)
if c.Check(s.g.Get(&aStripped), IsNil) == true {
//we skip the fetch date, for sure it will always expire
aStripped.FetchDate = a.FetchDate
c.Check(aStripped, DeepEquals, a)
}