File: test_changes.py

package info (click to toggle)
python-tmdbsimple 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: python: 2,231; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 828 bytes parent folder | download
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
# -*- coding: utf-8 -*-

"""
test_changes.py
~~~~~~~~~~~~~~~

This test suite checks the methods of the Changes class of tmdbsimple.

Created by Celia Oakley on 2013-11-05

:copyright: (c) 2013-2022 by Celia Oakley.
:license: GPLv3, see LICENSE for more details.
"""

import unittest
import tmdbsimple as tmdb

from tests import API_KEY
tmdb.API_KEY = API_KEY


class ChangesTestCase(unittest.TestCase):
    def test_changes_movie(self):
        changes = tmdb.Changes()
        changes.movie()
        self.assertTrue(hasattr(changes, 'results'))

    def test_changes_tv(self):
        change = tmdb.Changes()
        change.tv()
        self.assertTrue(hasattr(change, 'results'))

    def test_changes_person(self):
        change = tmdb.Changes()
        change.person()
        self.assertTrue(hasattr(change, 'results'))