def test_numobjects_loaded_ExampleECF(): v = load_ecf("TESTDATA\\Config_Example.ecf") assert len(v[0].keys()) == 1588 assert len(v[1].keys()) == 1588
def test_numobjects_loaded_BlockShapesECF(): v = load_ecf("TESTDATA\\BlockShapesWindow.ecf") assert len(v[0].keys()) == 7 assert len(v[1].keys()) == 7
def test_numobjects_loaded_ReputationECF(): v = load_ecf("TESTDATA\\DefReputation.ecf") assert len(v.keys()) == 1
def test_numobjects_loaded_GroupsECF(): v = load_ecf("TESTDATA\\EGroupsConfig.ecf") assert len(v.keys()) == 58
def test_numobjects_loaded_FactionECF(): v = load_ecf("TESTDATA\\FactionWarfare.ecf") assert len(v[0].keys()) == 2 # factions assert len(v[1].keys()) == 27 # scenarios - includes a comment-block! assert len(v[2].keys()) == 8 # units
def test_numobjects_loaded_NPCTraderECF_negative_commented(): v = load_ecf("NEGDATA\\TraderNPCConfig_commentedout.ecf", type=ECFType.Trader) # force Trader assert len(v.keys()) == 0
def test_numobjects_loaded_NPCTraderECF(): v = load_ecf("TESTDATA\\TraderNPCConfig.ecf") assert len(v.keys()) == 37
def test_numobjects_loaded_ConfigECF(): v = load_ecf("TESTDATA\\Config.ecf") assert len(v[0].keys()) == 16 assert len(v[1].keys()) == 16