add test for missing attr

This commit is contained in:
Hellowlol 2017-10-07 22:14:22 +02:00
parent 90217b060f
commit 08c24fce0d

View file

@ -9,6 +9,9 @@ def test_video_Movie(movies, movie):
movie2 = movies.get(movie.title)
assert movie2.title == movie.title
def test_video_Movie_attributeerror(movie):
with pytest.raises(AttributeError):
movie.asshat
def test_video_Movie_delete(monkeypatch, movie):
monkeypatch.delattr('requests.sessions.Session.request')