def test_relations(self): r = Features(relations=RelationsOptions()) assert r._to_dict() == {'relations': {}}
def test_sentiment(self): s = Features(sentiment=SentimentOptions()) assert s._to_dict() == {'sentiment': {}}
def test_metadata(self): m = Features(metadata=MetadataOptions()) assert m._to_dict() == {'metadata': {}}
def test_semantic_roles(self): s = Features(semantic_roles=SemanticRolesOptions()) assert s._to_dict() == {'semantic_roles': {}}
def test_emotion(self): e = Features(emotion=EmotionOptions()) assert e._to_dict() == {'emotion': {}}
def test_categories(self): c = Features(categories=CategoriesOptions()) assert c._to_dict() == {'categories': {}}
def test_keywords(self): k = Features(keywords=KeywordsOptions()) assert k._to_dict() == {'keywords': {}}
def test_entities(self): e = Features(entities=EntitiesOptions()) assert e._to_dict() == {'entities': {}}
def test_concepts(self): c = Features(concepts=ConceptsOptions()) assert c._to_dict() == {'concepts': {}} c = Features(concepts=ConceptsOptions(limit=10)) assert c._to_dict() == {'concepts': {'limit': 10}}