def test_list(self): rtn = dup(['a', 'b'], 2) self.assertEqual(rtn, 'aabb')
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>')
def test_simple_case(self): rtn = dup('string', 2) self.assertEqual(rtn, 'stringstring')