simple podcastfeed serializer

This commit is contained in:
stubbfel
2014-07-01 20:43:54 +02:00
parent d93f89ca73
commit 94ae91702b
2 changed files with 27 additions and 0 deletions

View 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)

View 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()