@pytest.mark.parametrize('files', [['data/examples/rasa/demo-rasa.json', 'data/examples/rasa/demo-rasa-responses.md'], ['data/examples/rasa/demo-rasa.md', 'data/examples/rasa/demo-rasa-responses.md']])
def test_demo_data(files):
    from rasa.importers.utils import training_data_from_paths
    td = training_data_from_paths(files, language='en')
    assert (td.intents == {'affirm', 'greet', 'restaurant_search', 'goodbye', 'chitchat'})
    assert (td.entities == {'location', 'cuisine'})
    assert (td.responses == {'I am Mr. Bot', "It's sunny where I live"})
    assert (len(td.training_examples) == 46)
    assert (len(td.intent_examples) == 46)
    assert (len(td.response_examples) == 4)
    assert (len(td.entity_examples) == 11)
    assert (len(td.nlg_stories) == 2)
    assert (td.entity_synonyms == {'Chines': 'chinese', 'Chinese': 'chinese', 'chines': 'chinese', 'vegg': 'vegetarian', 'veggie': 'vegetarian'})
    assert (td.regex_features == [{'name': 'greet', 'pattern': 'hey[^\\s]*'}, {'name': 'zipcode', 'pattern': '[0-9]{5}'}])
@pytest.mark.parametrize('files', [['data/examples/rasa/demo-rasa.json', 'data/examples/rasa/demo-rasa-responses.md'], ['data/examples/rasa/demo-rasa.md', 'data/examples/rasa/demo-rasa-responses.md']])
def test_demo_data(files):
    from rasa.importers.utils import training_data_from_paths
    td = training_data_from_paths(files, language='en')
    assert (td.intents == {'affirm', 'greet', 'restaurant_search', 'goodbye', 'chitchat'})
    assert (td.entities == {'location', 'cuisine'})
    assert (td.responses == {'I am Mr. Bot', "It's sunny where I live"})
    assert (len(td.training_examples) == 46)
    assert (len(td.intent_examples) == 46)
    assert (len(td.response_examples) == 4)
    assert (len(td.entity_examples) == 11)
    assert (len(td.nlg_stories) == 2)
    assert (td.entity_synonyms == {'Chines': 'chinese', 'Chinese': 'chinese', 'chines': 'chinese', 'vegg': 'vegetarian', 'veggie': 'vegetarian'})
    assert (td.regex_features == [{'name': 'greet', 'pattern': 'hey[^\\s]*'}, {'name': 'zipcode', 'pattern': '[0-9]{5}'}])