예제 #1
0
 def test_all_whitespace_tabs_and_spaces(self):
     source = '	    	    	    	    	    	    		'
     self.assertTrue(yasi.all_whitespace(source))
예제 #2
0
 def test_all_whitespace_spaces_only(self):
     source = '           '
     self.assertTrue(yasi.all_whitespace(source))
예제 #3
0
 def test_all_whitespace_empty_string(self):
     source = ''
     self.assertTrue(yasi.all_whitespace(source))
예제 #4
0
 def test_all_whitespace_no_whitespace(self):
     source = 'karamba!!'
     self.assertFalse(yasi.all_whitespace(source))
예제 #5
0
 def test_all_whitespace_tabs_only(self):
     source = '								'
     self.assertTrue(yasi.all_whitespace(source))
예제 #6
0
 def test_all_whitespace_empty_string(self):
     source = ''
     self.assertTrue(yasi.all_whitespace(source))
예제 #7
0
 def test_all_whitespace_no_whitespace(self):
     source = 'karamba!!'
     self.assertFalse(yasi.all_whitespace(source))