示例#1
0
 def test_list(self):
     rtn = dup(['a', 'b'], 2)
     self.assertEqual(rtn, 'aabb')
示例#2
0
 def test_classes_style(self):
     rtn = dup('a', 3, classes='class_1', style='style_1')
     self.assertEqual(rtn, '<span class="class_1" style="style_1">aaa</span>')
示例#3
0
 def test_simple_case(self):
     rtn = dup('string', 2)
     self.assertEqual(rtn, 'stringstring')