forked from pushingkarmaorg/python-plexapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_media.py
More file actions
52 lines (28 loc) · 821 Bytes
/
test_media.py
File metadata and controls
52 lines (28 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
def _test_media_tag(obj, attr):
tags = getattr(obj, attr)
if tags:
assert obj in tags[0].items()
def tag_collection(obj):
_test_media_tag(obj, "collections")
def tag_country(obj):
_test_media_tag(obj, "countries")
def tag_director(obj):
_test_media_tag(obj, "directors")
def tag_genre(obj):
_test_media_tag(obj, "genres")
def tag_label(obj):
_test_media_tag(obj, "labels")
def tag_mood(obj):
_test_media_tag(obj, "moods")
def tag_producer(obj):
_test_media_tag(obj, "producers")
def tag_role(obj):
_test_media_tag(obj, "roles")
def tag_similar(obj):
_test_media_tag(obj, "similar")
def tag_style(obj):
_test_media_tag(obj, "styles")
def tag_tag(obj):
_test_media_tag(obj, "tags")
def tag_writer(obj):
_test_media_tag(obj, "writers")