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