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)
def setUp(self): _file = StringIO.StringIO("test") self.svgstringio = SvgStringIO("io1",_file)