コード例 #1
0
 def testAlreadyQuoted(self):
     inp = ["'a'", "'b'", "'c'"]
     outp = enquote(inp)
     self.assertEqual(inp, outp, 'Already quoted should come back equal')
コード例 #2
0
 def testEmpty(self):
     inp = []
     outp = enquote(inp)
     self.assertEqual(inp, outp, 'Empty array should come back empty')
コード例 #3
0
 def testAddingQuotes(self):
     inp = ["a", "b", "c"]
     exp = ["'a'", "'b'", "'c'"]
     outp = enquote(inp)
     self.assertEqual(outp, exp, 'Adding quotes to values')