예제 #1
0
 def test_idempotent_for_null_values(self):
     self.assertEqual(strip_whitespace(colander.null), colander.null)
예제 #2
0
 def test_removes_all_kinds_of_spaces(self):
     value = " \t teaser \n \r"
     self.assertEqual(strip_whitespace(value), 'teaser')
예제 #3
0
 def test_does_remove_middle_spaces(self):
     self.assertEqual(strip_whitespace('a b c'), 'a b c')
예제 #4
0
 def preparer(self, appstruct):
     return strip_whitespace(appstruct)
예제 #5
0
파일: schema.py 프로젝트: ljakimczuk/kinto
 def preparer(self, appstruct):
     return strip_whitespace(appstruct)
예제 #6
0
 def test_idempotent_for_null_values(self):
     self.assertEqual(strip_whitespace(colander.null), colander.null)
예제 #7
0
 def test_does_remove_middle_spaces(self):
     self.assertEqual(strip_whitespace("a b c"), "a b c")
예제 #8
0
 def test_removes_all_kinds_of_spaces(self):
     value = " \t teaser \n \r"
     self.assertEqual(strip_whitespace(value), "teaser")