コード例 #1
0
 def test_ltrim(self):
     self.assertJson(query.ltrim(" car radio "), '{"ltrim":" car radio "}')
コード例 #2
0
 def test_ltrim(self):
     self.assertEqual(self._q(query.ltrim("")), "")
     self.assertEqual(self._q(query.ltrim("    A")), "A")
     self.assertEqual(self._q(query.ltrim("\t\n\t\n  Apple")), 'Apple')
     self.assertEqual(self._q(query.ltrim(" A B C")), "A B C")