Example #1
0
def is_loc_alnum(code):
    return code < 256 and isalnum(code)
Example #2
0
 def fn():
     assert isupper(ord("A"))
     assert islower(ord("a"))
     assert not isalpha(ord(" "))
     assert isalnum(ord("1"))
     assert tolower(ord("A")) == ord("a")
Example #3
0
 def fn():
     assert isupper(ord("A"))
     assert islower(ord("a"))
     assert not isalpha(ord(" "))
     assert isalnum(ord("1"))
     assert tolower(ord("A")) == ord("a")
Example #4
0
def is_loc_alnum(code):
    return code < 256 and isalnum(code)
Example #5
0
 def test_lower_upper(self):
     assert isupper(ord("A"))
     assert islower(ord("a"))
     assert not isalpha(ord(" "))
     assert isalnum(ord("1"))
     assert tolower(ord("A")) == ord("a")