コード例 #1
0
ファイル: test_validation.py プロジェクト: creisman/section
 def test_path_with_illegal_characters(self):
     self.assertFalse(_valid_path("/path()/"))
     self.assertFalse(_valid_path("/blah>dum<"))
コード例 #2
0
ファイル: test_validation.py プロジェクト: creisman/section
 def test_path_whitespace(self):
     self.assertFalse(_valid_path("/path to nowhere"))
     self.assertFalse(_valid_path("/path with trailing slash/"))
コード例 #3
0
ファイル: test_validation.py プロジェクト: creisman/section
 def test_path_no_whitespace(self):
     self.assertTrue(_valid_path(""))
     self.assertTrue(_valid_path("/path/to/stuff"))
     self.assertTrue(_valid_path("/path/with/trailing/slash/"))
コード例 #4
0
ファイル: test_validation.py プロジェクト: creisman/section
 def test_path_no_whitespace(self):
   self.assertTrue(_valid_path(""))
   self.assertTrue(_valid_path("/path/to/stuff"))
   self.assertTrue(_valid_path("/path/with/trailing/slash/"))
コード例 #5
0
ファイル: test_validation.py プロジェクト: creisman/section
 def test_path_with_illegal_characters(self):
   self.assertFalse(_valid_path("/path()/"))
   self.assertFalse(_valid_path("/blah>dum<"))
コード例 #6
0
ファイル: test_validation.py プロジェクト: creisman/section
 def test_path_whitespace(self):
   self.assertFalse(_valid_path("/path to nowhere"))
   self.assertFalse(_valid_path("/path with trailing slash/"))