diff --git a/src/utilities/podcastserializer.py b/src/utilities/podcastserializer.py new file mode 100644 index 0000000..fccf711 --- /dev/null +++ b/src/utilities/podcastserializer.py @@ -0,0 +1,15 @@ +__author__ = 'dev' + +from utilities.serializer import Serializer + +class PodcastSerializer(Serializer): + + def serialize(self, dict_object): + """ + method convert i dict to a string. + this method should be override by any subclasses + :param dict_object: object wich his to bee convert to a string + :return: rhe string reprasention of the dict_object + """ + assert isinstance(dict_object, dict) + return str(dict_object) \ No newline at end of file diff --git a/testenv/tests/utilities/testpodcastserializer.py b/testenv/tests/utilities/testpodcastserializer.py new file mode 100644 index 0000000..ee73c95 --- /dev/null +++ b/testenv/tests/utilities/testpodcastserializer.py @@ -0,0 +1,12 @@ +__author__ = 'dev' + +import unittest + + +class MyTestCase(unittest.TestCase): + def test_something(self): + self.assertEqual(True, False) + + +if __name__ == '__main__': + unittest.main()