def METHOD_NAME(api):
    '''
    tests the directory create api.
    '''
    responses.add(responses.POST,
                  f'{RE_BASE}/directories',
                  json=[{
                      "id": 0,
                      "name": "new_directory",
                      "ip": "127.0.0.2",
                      "type": "directory_type",
                      "ldapPort": 400,
                      "globalCatalogPort": 0,
                      "smbPort": 0,
                      "dns": "company",
                      "infrastructureId": 0,
                      "ldapCrawlingStatus": "none",
                      "sysvolCrawlingStatus": "none",
                      "honeyAccountAdObjectId": 0,
                      "honeyAccountDistinguishedName": "honey",
                      "honeyAccountConfigurationStatus": "none"
                  }]
                  )
    resp = api.directories.create(
        infrastructure_id=1,
        name='ExampleServer',
        ip='172.16.0.1',
        directory_type='????',
        dns='company.tld',
        ldap_port=400
    )
    assert isinstance(resp, list)
    assert resp[0]['ldap_port'] == 400
    assert resp[0]['name'] == 'new_directory'