# Path: seedbox/tests/test.py
# class ConfiguredBaseTestCase(BaseTestCase):
#     def setUp(self):
#     def tearDown(self):
#     def _make_dir(self, dirname):
#     def set_required_options(self):
# 
# Path: seedbox/torrent/parser.py
# LOG = logging.getLogger(__name__)
# DICT_TOKEN = 'd'
# LIST_TOKEN = 'l'
# INT_TOKEN = 'i'
# END_TOKEN = 'e'
# NEGATIVE = '-'
# STR_SEP_TOKEN = ':'
# class ParsingError(Exception):
# class Bdecode(object):
# class TorrentParser(object):
#     def __init__(self, error_msg):
#     def __str__(self):
#     def __init__(self, data):
#     def _next_char(self):
#     def _prev_char(self):
#     def _parse_str(self):
#     def _parse_int(self):
#     def _parse_number(self, delimiter):
#     def _parse_dict(self):
#     def _parse_list(self):
#     def decode(self):
#     def parse(cls, data):
#     def __init__(self, filepath):
#     def content(self):
#     def load_content(self):
#     def get_file_details(self):


import glob
import os
import testtools
from seedbox.tests import test
from seedbox.torrent import parser
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_tiny_torrent(self):
        tfile = os.path.join(torrent_path, 'tiny-torrent.torrent')
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_medium_torrent(self):
        tfile = os.path.join(torrent_path, 'medium-torrent.torrent')
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_large_torrent(self):
        tfile = os.path.join(torrent_path, 'large-torrent.torrent')
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_missing_file(self):

        with testtools.ExpectedException(IOError):
            parser.TorrentParser('dummy/file/does/not/exist')

    def test_parse_negative_integer(self):
        self.assertEqual(parser.Bdecode.parse(b'i-123e'), -123)

    def test_parse_invalid_integer(self):
        self.assertRaises(parser.ParsingError, parser.Bdecode.parse, b'i123ae')

    def test_parse_invalid_str(self):

# Path: seedbox/tests/test.py
# class ConfiguredBaseTestCase(BaseTestCase):
#     def setUp(self):
#     def tearDown(self):
#     def _make_dir(self, dirname):
#     def set_required_options(self):
# 
# Path: seedbox/torrent/parser.py
# LOG = logging.getLogger(__name__)
# DICT_TOKEN = 'd'
# LIST_TOKEN = 'l'
# INT_TOKEN = 'i'
# END_TOKEN = 'e'
# NEGATIVE = '-'
# STR_SEP_TOKEN = ':'
# class ParsingError(Exception):
# class Bdecode(object):
# class TorrentParser(object):
#     def __init__(self, error_msg):
#     def __str__(self):
#     def __init__(self, data):
#     def _next_char(self):
#     def _prev_char(self):
#     def _parse_str(self):
#     def _parse_int(self):
#     def _parse_number(self, delimiter):
#     def _parse_dict(self):
#     def _parse_list(self):
#     def decode(self):
#     def parse(cls, data):
#     def __init__(self, filepath):
#     def content(self):
#     def load_content(self):
#     def get_file_details(self):


# Path: seedbox/tests/torrent/test_parser.py
import glob
import os
import testtools
from seedbox.tests import test
from seedbox.torrent import parser

        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_tiny_torrent(self):
        tfile = os.path.join(torrent_path, 'tiny-torrent.torrent')
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_medium_torrent(self):
        tfile = os.path.join(torrent_path, 'medium-torrent.torrent')
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_large_torrent(self):
        tfile = os.path.join(torrent_path, 'large-torrent.torrent')
        torrent = parser.TorrentParser(tfile)
        self.assertIsNotNone(torrent)

    def test_missing_file(self):

        with testtools.ExpectedException(IOError):
            parser.TorrentParser('dummy/file/does/not/exist')

    def test_parse_negative_integer(self):
        self.assertEqual(parser.Bdecode.parse(b'i-123e'), -123)

    def test_parse_invalid_integer(self):
        self.assertRaises(parser.ParsingError, parser.Bdecode.parse, b'i123ae')

    def test_parse_invalid_str(self):

        self.assertRaises(parser.ParsingError, parser.Bdecode.parse, b'0:ae')