# Path: neubot/bittorrent/config.py
# NUMPIECES = 1 << 20
# PIECE_LEN = 1 << 17
# MAXMESSAGE = 1 << 18
# PROPERTIES = (
#     ('bittorrent.address', '', 'Address to listen/connect to ("" = auto)'),
#     ('bittorrent.bytes.down', 0, 'Num of bytes to download (0 = auto)'),
#     ('bittorrent.bytes.up', 0, 'Num of bytes to upload (0 = auto)'),
#     ('bittorrent.infohash', '', 'Set InfoHash ("" = auto)'),
#     ('bittorrent.listen', False, 'Run in server mode'),
#     ('bittorrent.negotiate', True, 'Enable negotiate client/server'),
#     ('bittorrent.negotiate.port', 8080, 'Negotiate port'),
#     ('bittorrent.my_id', '', 'Set local PeerId ("" = auto)'),
#     ('bittorrent.numpieces', NUMPIECES, 'Num of pieces in bitfield'),
#     ('bittorrent.piece_len', PIECE_LEN, 'Length of each piece'),
#     ('bittorrent.port', 6881, 'Port to listen/connect to (0 = auto)'),
#     ('bittorrent.watchdog', WATCHDOG, 'Maximum test run-time in seconds'),
# )
# def register_descriptions():
# def _random_bytes(num):
# def finalize_conf(conf):


import unittest
import sys
from neubot.bittorrent import config
from neubot.bittorrent import estimate


if __name__ == '__main__':
    sys.path.insert(0, '.')


PROPERTIES = (
    'bittorrent.address',
    'bittorrent.bytes.down',
    'bittorrent.bytes.up',
    'bittorrent.infohash',
    'bittorrent.listen',
    'bittorrent.negotiate',
    'bittorrent.negotiate.port',
    'bittorrent.my_id',
    'bittorrent.numpieces',
    'bittorrent.piece_len',
    'bittorrent.port',
    'bittorrent.watchdog',
)

# pylint: disable=R0904
class TestPROPERTIES(unittest.TestCase):

    ''' Make sure we support all and only the expected properties '''

    def test_properties(self):

        ''' Make sure we support all and only the expected properties '''


# Path: neubot/bittorrent/config.py
# NUMPIECES = 1 << 20
# PIECE_LEN = 1 << 17
# MAXMESSAGE = 1 << 18
# PROPERTIES = (
#     ('bittorrent.address', '', 'Address to listen/connect to ("" = auto)'),
#     ('bittorrent.bytes.down', 0, 'Num of bytes to download (0 = auto)'),
#     ('bittorrent.bytes.up', 0, 'Num of bytes to upload (0 = auto)'),
#     ('bittorrent.infohash', '', 'Set InfoHash ("" = auto)'),
#     ('bittorrent.listen', False, 'Run in server mode'),
#     ('bittorrent.negotiate', True, 'Enable negotiate client/server'),
#     ('bittorrent.negotiate.port', 8080, 'Negotiate port'),
#     ('bittorrent.my_id', '', 'Set local PeerId ("" = auto)'),
#     ('bittorrent.numpieces', NUMPIECES, 'Num of pieces in bitfield'),
#     ('bittorrent.piece_len', PIECE_LEN, 'Length of each piece'),
#     ('bittorrent.port', 6881, 'Port to listen/connect to (0 = auto)'),
#     ('bittorrent.watchdog', WATCHDOG, 'Maximum test run-time in seconds'),
# )
# def register_descriptions():
# def _random_bytes(num):
# def finalize_conf(conf):


# Path: regress/neubot/bittorrent/config.py
import unittest
import sys
from neubot.bittorrent import config
from neubot.bittorrent import estimate



if __name__ == '__main__':
    sys.path.insert(0, '.')


PROPERTIES = (
    'bittorrent.address',
    'bittorrent.bytes.down',
    'bittorrent.bytes.up',
    'bittorrent.infohash',
    'bittorrent.listen',
    'bittorrent.negotiate',
    'bittorrent.negotiate.port',
    'bittorrent.my_id',
    'bittorrent.numpieces',
    'bittorrent.piece_len',
    'bittorrent.port',
    'bittorrent.watchdog',
)

# pylint: disable=R0904
class TestPROPERTIES(unittest.TestCase):

    ''' Make sure we support all and only the expected properties '''

    def test_properties(self):

        ''' Make sure we support all and only the expected properties '''


        properties = tuple([ item[0] for item in config.PROPERTIES ])