def testNegative(self): with self.assertRaises(AssertionError): generate_n_chars(-1, "x")
def testMultistring(self): self.assertEqual("abcabcabcabc", generate_n_chars(4,"abc"))
def testZero(self): self.assertEqual("", generate_n_chars(0,"x"))
def testEmpty(self): self.assertEqual("", generate_n_chars(5,""))
def testExample(self): self.assertEqual("xxxxx", generate_n_chars(5,"x"))