Fix bug concerning Post class

This commit is contained in:
Alexander Graf
2018-04-12 17:18:02 +02:00
parent bd9e9d4a06
commit 5d249c5401

View File

@@ -44,13 +44,7 @@ class Post:
:param owner_profile: The Profile of the owner, if already known at creation. :param owner_profile: The Profile of the owner, if already known at creation.
""" """
# Ensure node contains all the data that is accessed via self._node
assert 'shortcode' in node or 'code' in node assert 'shortcode' in node or 'code' in node
assert 'id' in node
assert 'owner' in node
assert 'date' in node or 'taken_at_timestamp' in node
assert 'display_url' in node or 'display_src' in node
assert 'is_video' in node
self._context = context self._context = context
self._node = node self._node = node