python-plexapi/tests/test_photo.py

8 lines
270 B
Python
Raw Normal View History

def test_photo_Photoalbum(photoalbum):
assert len(photoalbum.albums()) == 3
assert len(photoalbum.photos()) == 3
2020-04-29 21:23:22 +00:00
cats_in_bed = photoalbum.album("Cats in bed")
assert len(cats_in_bed.photos()) == 7
2020-04-29 21:23:22 +00:00
a_pic = cats_in_bed.photo("photo7")
assert a_pic