# Path: analyzer/subtitles_parser.py
# class Subtitle(Model):
# 	def __init__(self, t1, t2, text, original_text=None, character=None):
# 	def __str__(self):
# 	def __repr__(self):
# 	def as_dict(self, camel=True):
# 	def to_mongo_dict(self):
# 	def from_dict(cls, data, from_camel=True):
# def strip_non_ascii(string):
# def parse_subtitle(text):
# def extract_speeches(speech_lines):
# def parse_text(text):
# def parse_file(srt):


import unittest
import mongomock
from analyzer import subtitles_parser
# -*- coding: utf-8 -*-



class SubtitlesTest(unittest.TestCase):
	"""Some test case"""

	def setUp(self):
		self._sut = mongomock.MongoClient().testdb

	def test_parse_double_text(self):
		text = """16
00:00:54,000 --> 00:00:55,200
- Yeah. Call me.
- When?
"""


# Path: analyzer/subtitles_parser.py
# class Subtitle(Model):
# 	def __init__(self, t1, t2, text, original_text=None, character=None):
# 	def __str__(self):
# 	def __repr__(self):
# 	def as_dict(self, camel=True):
# 	def to_mongo_dict(self):
# 	def from_dict(cls, data, from_camel=True):
# def strip_non_ascii(string):
# def parse_subtitle(text):
# def extract_speeches(speech_lines):
# def parse_text(text):
# def parse_file(srt):


# Path: tests/test_subtitles.py
import unittest
import mongomock
from analyzer import subtitles_parser

# -*- coding: utf-8 -*-



class SubtitlesTest(unittest.TestCase):
	"""Some test case"""

	def setUp(self):
		self._sut = mongomock.MongoClient().testdb

	def test_parse_double_text(self):
		text = """16
00:00:54,000 --> 00:00:55,200
- Yeah. Call me.
- When?
"""


		subtitles = subtitles_parser.parse_text(text)