Beispiel #1
0
 def test_string_with_whitespace_is_blank(self):
     tools.assert_true(is_blank("\t\n "))
Beispiel #2
0
 def test_string_with_narrow_nobreak_space_is_blank(self):
     tools.assert_true(is_blank("\u202F \t"))
Beispiel #3
0
 def test_string_with_newline_is_blank(self):
     tools.assert_true(is_blank("\n"))
Beispiel #4
0
 def test_string_with_whitespace_is_blank(self):
     assert is_blank("\t\n ")
Beispiel #5
0
 def test_empty_string_is_blank(self):
     tools.assert_true(is_blank(""))
Beispiel #6
0
 def test_string_with_narrow_nobreak_space_is_blank(self):
     assert is_blank("\u202F \t")
Beispiel #7
0
 def test_string_with_newline_is_blank(self):
     assert is_blank("\n")
Beispiel #8
0
 def test_string_with_chars_is_not_blank(self):
     tools.assert_false(is_blank("  #  "))
Beispiel #9
0
 def test_empty_string_is_blank(self):
     assert is_blank("")
Beispiel #10
0
 def test_string_with_tab_is_blank(self):
     tools.assert_true(is_blank("\t"))
Beispiel #11
0
 def test_string_with_whitespace_is_blank(self):
     tools.assert_true(is_blank("\t\n "))
Beispiel #12
0
 def test_string_with_newline_is_blank(self):
     tools.assert_true(is_blank("\n"))
Beispiel #13
0
 def test_string_with_spaces_is_blank(self):
     tools.assert_true(is_blank("    "))
Beispiel #14
0
 def test_string_with_narrow_nobreak_space_is_blank(self):
     tools.assert_true(is_blank("\u202F \t"))
Beispiel #15
0
 def test_string_with_nobreak_space_is_blank(self):
     tools.assert_true(is_blank("\u00A0\t "))
Beispiel #16
0
 def test_string_with_nobreak_space_is_blank(self):
     assert is_blank("\u00A0\t ")
Beispiel #17
0
 def test_string_with_nobreak_space_is_blank(self):
     assert is_blank("\u00A0\t ")
Beispiel #18
0
 def test_string_with_narrow_nobreak_space_is_blank(self):
     assert is_blank("\u202F \t")
Beispiel #19
0
 def test_string_with_spaces_is_blank(self):
     assert is_blank("    ")
Beispiel #20
0
 def test_string_with_spaces_is_blank(self):
     assert is_blank("    ")
Beispiel #21
0
 def test_string_with_tab_is_blank(self):
     assert is_blank("\t")
Beispiel #22
0
 def test_string_with_newline_is_blank(self):
     assert is_blank("\n")
Beispiel #23
0
 def test_string_with_chars_is_not_blank(self):
     assert not is_blank("  #  ")
Beispiel #24
0
 def test_string_with_tab_is_blank(self):
     assert is_blank("\t")
Beispiel #25
0
 def test_string_with_nobreak_space_is_blank(self):
     tools.assert_true(is_blank("\u00A0\t "))
Beispiel #26
0
 def test_string_with_whitespace_is_blank(self):
     assert is_blank("\t\n ")
Beispiel #27
0
 def test_string_with_spaces_is_blank(self):
     tools.assert_true(is_blank("    "))
Beispiel #28
0
 def test_string_with_chars_is_not_blank(self):
     assert not is_blank("  #  ")
Beispiel #29
0
 def test_string_with_tab_is_blank(self):
     tools.assert_true(is_blank("\t"))
Beispiel #30
0
 def test_empty_string_is_blank(self):
     assert is_blank("")
Beispiel #31
0
 def test_string_with_chars_is_not_blank(self):
     tools.assert_false(is_blank("  #  "))
Beispiel #32
0
 def test_empty_string_is_blank(self):
     tools.assert_true(is_blank(""))