@mock.patch.object(trovebox.Trovebox, 'post')
    def test_album_add_invalid_type(self, _):
        with self.assertRaises(AttributeError):
            self.test_albums[0].add([object()])
Check that an exception is raised if an invalid object is added
dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_albums.py/TestAlbumAdd.test_album_add_invalid_type