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