Ejemplo n.º 1
0
 def test_save_with_digital_edition_data(self):
     factory = AlbumFactory()
     digital_edition = EditionFactory(
         album=factory,
         kind=edition_type.digital,
         art='/path/to/art-digital.png',
         released=datetime.date.today()
     )
     factory.save()
     assert factory.primary_edition == digital_edition
     assert factory.art == digital_edition.art
     assert factory.released == digital_edition.released
Ejemplo n.º 2
0
 def test_get_absolute_url(self, client):
     factory = AlbumFactory()
     response = client.get(factory.get_absolute_url())
     assert response.status_code == 200