OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
test_banlist Namespace Reference

Classes

class  BanlistTest

Functions

 read (path, mode='r')
 entry (**extra)
 listing (entries=None, **extra)

Variables

 HERE = os.path.dirname(os.path.abspath(__file__))
 TOOL = os.path.join(HERE, 'banlist.py')
str ID = 'P-ABCD-EFGH-IJKL-MNOP'

Detailed Description

Tests for banlist.py, the maintainers' tool for shared ban lists:

    python3 -m unittest discover -s scripts -p 'test_*.py'

Needs the openssl CLI.

Function Documentation

◆ entry()

test_banlist.entry ( ** extra)

◆ listing()

test_banlist.listing ( entries = None,
** extra )

◆ read()

test_banlist.read ( path,
mode = 'r' )

Variable Documentation

◆ HERE

test_banlist.HERE = os.path.dirname(os.path.abspath(__file__))

◆ ID

str test_banlist.ID = 'P-ABCD-EFGH-IJKL-MNOP'

◆ TOOL

test_banlist.TOOL = os.path.join(HERE, 'banlist.py')