def test_get(self): fields = { 'uuid': '81c7ed5a-0c21-4485-af81-56a46921dff9', } self.model = Note.get(client=self.client, uuid=fields['uuid']) assert hasattr(self.model, 'uuid') and self.model.uuid == fields['uuid'] assert hasattr(self.model, 'media_item_uuid') and self.model.media_item_uuid is not None assert hasattr(self.model, 'content') and self.model.content is not None assert hasattr(self.model, 'start_time') and self.model.start_time is not None assert hasattr(self.model, 'type') and self.model.type is not None assert hasattr(self.model, 'author') and self.model.author is not None and hasattr(self.author, 'uuid')
def test_get(self): fields = { 'uuid': '81c7ed5a-0c21-4485-af81-56a46921dff9', } self.model = Note.get(client=self.client, uuid=fields['uuid']) assert hasattr(self.model, 'uuid') and self.model.uuid == fields['uuid'] assert hasattr( self.model, 'media_item_uuid') and self.model.media_item_uuid is not None assert hasattr(self.model, 'content') and self.model.content is not None assert hasattr(self.model, 'start_time') and self.model.start_time is not None assert hasattr(self.model, 'type') and self.model.type is not None assert hasattr(self.model, 'author') and self.model.author is not None and hasattr( self.author, 'uuid')