示例#1
0
文件: test11.py 项目: migross76/build
 def testNegative(self):
     with self.assertRaises(AssertionError):
         generate_n_chars(-1, "x")
示例#2
0
文件: test11.py 项目: migross76/build
 def testMultistring(self):
     self.assertEqual("abcabcabcabc", generate_n_chars(4,"abc"))
示例#3
0
文件: test11.py 项目: migross76/build
 def testZero(self):
     self.assertEqual("", generate_n_chars(0,"x"))
示例#4
0
文件: test11.py 项目: migross76/build
 def testEmpty(self):
     self.assertEqual("", generate_n_chars(5,""))
示例#5
0
文件: test11.py 项目: migross76/build
 def testExample(self):
     self.assertEqual("xxxxx", generate_n_chars(5,"x"))