Beispiel #1
0
class SvgStringIoTests(unittest.TestCase):

    def setUp(self):
        _file = StringIO.StringIO("test")
        self.svgstringio = SvgStringIO("io1",_file)
        
    def test_init_svg_string_io(self):
        self.assertEquals("test",self.svgstringio.content)
        
    def test_set_content(self):
        self.svgstringio.setContent("modify_content")
        self.assertEquals("modify_content",self.svgstringio.content)
Beispiel #2
0
 def setUp(self):
     _file = StringIO.StringIO("test")
     self.svgstringio = SvgStringIO("io1",_file)