simple podcastfeed serializer
This commit is contained in:
15
src/utilities/podcastserializer.py
Normal file
15
src/utilities/podcastserializer.py
Normal file
@@ -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)
|
||||
12
testenv/tests/utilities/testpodcastserializer.py
Normal file
12
testenv/tests/utilities/testpodcastserializer.py
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user