def test_luis_data():
    td = training_data.load_data('data/examples/luis/demo-restaurants.json')
    assert (not td.is_empty())
    assert (len(td.entity_examples) == 8)
    assert (len(td.intent_examples) == 28)
    assert (len(td.training_examples) == 28)
    assert (td.entity_synonyms == {})
    assert (td.intents == {'affirm', 'goodbye', 'greet', 'inform'})
    assert (td.entities == {'location', 'cuisine'})
def test_luis_data():
    td = training_data.load_data('data/examples/luis/demo-restaurants.json')
    assert (not td.is_empty())
    assert (len(td.entity_examples) == 8)
    assert (len(td.intent_examples) == 28)
    assert (len(td.training_examples) == 28)
    assert (td.entity_synonyms == {})
    assert (td.intents == {'affirm', 'goodbye', 'greet', 'inform'})
    assert (td.entities == {'location', 'cuisine'})