# Path: simpleMediaCenter/playlist/Playlist.py
# class FiFo(Playlist):
#     queue = deque([])
#     
#     def __init__(self):
#         pass
# 
#     def add(self, filePath):
#         logging.debug("try to add: %s", filePath)
#         if(os.path.isfile(filePath)):
#             self.queue.append(filePath)
#         else:
#             raise Exception
#         
#     def getNext(self):
#         logging.debug("getNext called")
#         if(len(self.queue) > 0):
#             return self.queue.popleft()
#         else:
#             raise Exception
#     
#     def getDict(self):
#         raise NotImplementedError


from simpleMediaCenter.playlist.Playlist import FiFo
import unittest

class TestFifo(unittest.TestCase):
    fifo = None
    testfilepath1 = "TEST VIDEO-1.mp4"
    testfilepath2 = "TEST VIDEO-2.mp4"

    def setUp(self):

# Path: simpleMediaCenter/playlist/Playlist.py
# class FiFo(Playlist):
#     queue = deque([])
#     
#     def __init__(self):
#         pass
# 
#     def add(self, filePath):
#         logging.debug("try to add: %s", filePath)
#         if(os.path.isfile(filePath)):
#             self.queue.append(filePath)
#         else:
#             raise Exception
#         
#     def getNext(self):
#         logging.debug("getNext called")
#         if(len(self.queue) > 0):
#             return self.queue.popleft()
#         else:
#             raise Exception
#     
#     def getDict(self):
#         raise NotImplementedError


# Path: test/test_Fifo.py
from simpleMediaCenter.playlist.Playlist import FiFo
import unittest


class TestFifo(unittest.TestCase):
    fifo = None
    testfilepath1 = "TEST VIDEO-1.mp4"
    testfilepath2 = "TEST VIDEO-2.mp4"

    def setUp(self):

        self.fifo = FiFo()