def test_wit_data():
    td = training_data.load_data('data/examples/wit/demo-flights.json')
    assert (not td.is_empty())
    assert (len(td.entity_examples) == 4)
    assert (len(td.intent_examples) == 1)
    assert (len(td.training_examples) == 4)
    assert (td.entity_synonyms == {})
    assert (td.intents == {'flight_booking'})
    assert (td.entities == {'location', 'datetime'})
def test_wit_data():
    td = training_data.load_data('data/examples/wit/demo-flights.json')
    assert (not td.is_empty())
    assert (len(td.entity_examples) == 4)
    assert (len(td.intent_examples) == 1)
    assert (len(td.training_examples) == 4)
    assert (td.entity_synonyms == {})
    assert (td.intents == {'flight_booking'})
    assert (td.entities == {'location', 'datetime'})