# Path: simpleMediaCenter/interface/Interface.py
# class InterfaceListable():
#     __array=None
#     __current=None
# 
#     def __init__(self, array):
#         if(array is None):
#             raise TypeError('array is not allowed to be None')
#             
#         if(len(array)<0):
#             raise TypeError('array is not allowed to be smaller then 0')
#             
#         if(len(array)<=0):
#             self.__array=None
#             self.__current=None
#         else:
#             self.__array=array
#             self.__current=0
#         
#     def setActive(self, id):
#         if(self.__array is None):
#             return None
#         if(0<=id<len(self.__array)):
#             self.__current=id
#         else:
#             raise TypeError('id not in range of playerArray with size ' + len(self.__array))
#             
#     def getActive(self):
#         if(self.__array is None):
#             return None
#         return self.__array[self.__current]
#         
#     def getIDfromName(self, name):
#         tempid=0
#         for entry in self.getArray():
#             if(entry==name):
#                 return tempid
#             else:
#                 tempid = tempid + 1
#         return None
#         
#     def getArray(self):
#         if(self.__array is None):
#             return None
#         temparray = []
#         for i in self.__array:
#             temparray.append(i.getName())
#         return temparray


from simpleMediaCenter.interface.Interface import InterfaceListable
import unittest
import time
import requests

class TestInterfaceListable(unittest.TestCase):

    def setUp(self):
        pass
        
    def tearDown(self):
        pass
        
    def test_creation_1(self):
        with self.assertRaises(TypeError):

# Path: simpleMediaCenter/interface/Interface.py
# class InterfaceListable():
#     __array=None
#     __current=None
# 
#     def __init__(self, array):
#         if(array is None):
#             raise TypeError('array is not allowed to be None')
#             
#         if(len(array)<0):
#             raise TypeError('array is not allowed to be smaller then 0')
#             
#         if(len(array)<=0):
#             self.__array=None
#             self.__current=None
#         else:
#             self.__array=array
#             self.__current=0
#         
#     def setActive(self, id):
#         if(self.__array is None):
#             return None
#         if(0<=id<len(self.__array)):
#             self.__current=id
#         else:
#             raise TypeError('id not in range of playerArray with size ' + len(self.__array))
#             
#     def getActive(self):
#         if(self.__array is None):
#             return None
#         return self.__array[self.__current]
#         
#     def getIDfromName(self, name):
#         tempid=0
#         for entry in self.getArray():
#             if(entry==name):
#                 return tempid
#             else:
#                 tempid = tempid + 1
#         return None
#         
#     def getArray(self):
#         if(self.__array is None):
#             return None
#         temparray = []
#         for i in self.__array:
#             temparray.append(i.getName())
#         return temparray


# Path: test/test_InterfaceListable.py
from simpleMediaCenter.interface.Interface import InterfaceListable
import unittest
import time
import requests


class TestInterfaceListable(unittest.TestCase):

    def setUp(self):
        pass
        
    def tearDown(self):
        pass
        
    def test_creation_1(self):
        with self.assertRaises(TypeError):

            InterfaceListable(None)