@pytest.mark.parametrize('filepaths', [['data/examples/rasa/demo-rasa.md', 'data/examples/rasa/demo-rasa-responses.md']])
def test_train_test_split(filepaths):
    from rasa.importers.utils import training_data_from_paths
    td = training_data_from_paths(filepaths, language='en')
    assert (td.intents == {'affirm', 'greet', 'restaurant_search', 'goodbye', 'chitchat'})
    assert (td.entities == {'location', 'cuisine'})
    assert (len(td.training_examples) == 46)
    assert (len(td.intent_examples) == 46)
    (td_train, td_test) = td.train_test_split(train_frac=0.8)
    assert (len(td_train.training_examples) == 35)
    assert (len(td_test.training_examples) == 11)
@pytest.mark.parametrize('filepaths', [['data/examples/rasa/demo-rasa.md', 'data/examples/rasa/demo-rasa-responses.md']])
def test_train_test_split(filepaths):
    from rasa.importers.utils import training_data_from_paths
    td = training_data_from_paths(filepaths, language='en')
    assert (td.intents == {'affirm', 'greet', 'restaurant_search', 'goodbye', 'chitchat'})
    assert (td.entities == {'location', 'cuisine'})
    assert (len(td.training_examples) == 46)
    assert (len(td.intent_examples) == 46)
    (td_train, td_test) = td.train_test_split(train_frac=0.8)
    assert (len(td_train.training_examples) == 35)
    assert (len(td_test.training_examples) == 11)