예제 #1
0
 def test_remove_umlaut(self):
     assert ('' == ascit('ü'))
예제 #2
0
 def test_float(self):
     # Default strict=True removes periods.
     result = ascit('1.0', strict=False)
     assert('1.0' == result)
예제 #3
0
 def test_remove_space_plus(self):
     assert('' == ascit(' +', strict=True))
예제 #4
0
 def test_retain_grave(self):
     assert('è' == ascit('è'))
예제 #5
0
 def test_retain_oeligature(self):
     assert('œ' == ascit('œ'))
예제 #6
0
 def test_remove_duplicates(self):
     #print ascit('foo, |||,,,  ,, |,,, bar')
     assert ('foo     bar' == ascit('foo, |||,,,  ,, |,,, bar'))
예제 #7
0
 def test_remove_comma(self):
     assert('hello there' == ascit('hello, there'))
     assert('hello there' == ascit('hello, there',strict =True))
예제 #8
0
 def test_remove_duplicates(self):
     #print ascit('foo,- |||,,,- - --,, |,-,, bar')
     assert ('FOO BAR' == ascit('foo,- |||,,,- - --,, |,-,, bar'))
예제 #9
0
 def test_remove_circumflex(self):
     assert('' == ascit('ô'))
예제 #10
0
 def test_remove_usdq(self):
     assert ('' == ascit('¿'))
예제 #11
0
 def test_remove_ampersand(self):
     assert ('FOOBAR' == ascit('foo@bar', strict=True))
예제 #12
0
 def test_remove_cedilla(self):
     assert ('' == ascit('ç'))
예제 #13
0
 def test_remove_oeligature(self):
     assert ('' == ascit('œ'))
예제 #14
0
 def test_remove_tilde(self):
     assert ('' == ascit('ñ'))
예제 #15
0
 def test_remove_ampersand(self):
     assert ('foobar' == ascit('foo&bar', strict=True))
예제 #16
0
 def test_remove_umlaut(self):
     assert('' == ascit('ü'))
예제 #17
0
 def test_remove_space_plus(self):
     assert ('' == ascit(' +', strict=True))
예제 #18
0
 def test_remove_tilde(self):
     assert('' == ascit('ñ'))
예제 #19
0
 def test_remove_parentheses(self):
     #print ascit('{foo bar}', strict=True)
     assert('' == ascit('(foo bar)', strict=True))
예제 #20
0
 def test_remove_oeligature(self):
     assert('' == ascit('œ'))
예제 #21
0
 def test_retain_acute_verite(self):
     #print ascit('verité').rstrip('\r\n')
     assert('verité' == ascit('verité'))
예제 #22
0
 def test_remove_cedilla(self):
     assert('' == ascit('ç'))
예제 #23
0
 def test_retain_umlaut(self):
     assert('ü' == ascit('ü'))
예제 #24
0
 def test_remove_usdq(self):
     assert('' == ascit('¿'))
예제 #25
0
 def test_retain_usdq(self):
     assert('¿' == ascit('¿'))
예제 #26
0
 def test_remove_ampersand(self):
     assert('FOOBAR' == ascit('foo@bar', strict=True))
예제 #27
0
 def test_remove_ampersand(self):
     assert('foobar' == ascit('foo&bar', strict=True))
예제 #28
0
 def test_remove_duplicates(self):
     #print ascit('foo,- |||,,,- - --,, |,-,, bar')
     assert('FOO BAR' == ascit('foo,- |||,,,- - --,, |,-,, bar'))
예제 #29
0
 def test_remove_duplicates(self):
     #print ascit('foo, |||,,,  ,, |,,, bar')
     assert('foo     bar' == ascit('foo, |||,,,  ,, |,,, bar'))
예제 #30
0
 def test_remove_parentheses(self):
     #print ascit('{foo bar}', strict=True)
     assert ('' == ascit('(foo bar)', strict=True))
예제 #31
0
 def test_remove_period(self):
     assert ('10' == ascit('1.0', strict=True))
예제 #32
0
 def test_remove_period(self):
     assert ('hello there' == ascit('hello. there'))
     assert ('hello there' == ascit('hello. there', strict=True))
예제 #33
0
 def test_remove_punctuation(self):
     assert ('foobar' == ascit('f+=_oo@b!#$%^&*(){}ar', strict=True))
예제 #34
0
 def test_remove_comma(self):
     assert ('hello there' == ascit('hello, there'))
     assert ('hello there' == ascit('hello, there', strict=True))
예제 #35
0
 def test_remove_spaces(self):
     #print ascit('foo bar')
     assert ('foobar' == ascit('foobar'))
예제 #36
0
 def test_toupper(self):
     assert ('FOO' == ascit('FOO'))
예제 #37
0
 def test_remove_braces(self):
     #print ascit('{foo bar}', strict=True)
     assert ('' == ascit('{foo bar}', strict=True))
예제 #38
0
 def test_retain_acute_verite(self):
     #print ascit('verité').rstrip('\r\n')
     assert ('verité' == ascit('verité'))
예제 #39
0
 def test_remove_period(self):
     assert('hello there' == ascit('hello. there'))
     assert('hello there' == ascit('hello. there',strict =True))
예제 #40
0
 def test_retain_acute(self):
     #print 'ascit é' + ascit('é')
     assert ('é' == ascit('é'))
예제 #41
0
 def test_toupper(self):
     assert('FOO' == ascit('FOO'))
예제 #42
0
 def test_retain_grave(self):
     assert ('è' == ascit('è'))
예제 #43
0
 def test_retain_acute(self):
     #print 'ascit é' + ascit('é')
     assert('é' == ascit('é'))
예제 #44
0
 def test_retain_circumflex(self):
     assert ('ô' == ascit('ô'))
예제 #45
0
 def test_retain_circumflex(self):
     assert('ô' == ascit('ô'))
예제 #46
0
 def test_retain_umlaut(self):
     assert ('ü' == ascit('ü'))
예제 #47
0
 def test_retain_tilde(self):
     assert('ñ' == ascit('ñ'))
예제 #48
0
 def test_retain_tilde(self):
     assert ('ñ' == ascit('ñ'))
예제 #49
0
 def test_retain_cedilla(self):
     assert('ç' == ascit('ç'))
예제 #50
0
 def test_retain_oeligature(self):
     assert ('œ' == ascit('œ'))
예제 #51
0
 def test_int(self):
     assert('1' == ascit('1'))
예제 #52
0
 def test_retain_cedilla(self):
     assert ('ç' == ascit('ç'))
예제 #53
0
 def test_remove_period(self):
     assert('10' == ascit('1.0', strict=True))
예제 #54
0
 def test_retain_usdq(self):
     assert ('¿' == ascit('¿'))
예제 #55
0
 def test_remove_punctuation(self):
     assert('foobar' == ascit('f+=_oo@b!#$%^&*(){}ar', strict=True))
예제 #56
0
 def test_int(self):
     assert ('1' == ascit('1'))
예제 #57
0
 def test_remove_spaces(self):
     #print ascit('foo bar')
     assert('foobar' == ascit('foobar'))
예제 #58
0
 def test_float(self):
     # Default strict=True removes periods.
     result = ascit('1.0', strict=False)
     assert ('1.0' == result)
예제 #59
0
 def test_remove_braces(self):
     #print ascit('{foo bar}', strict=True)
     assert('' == ascit('{foo bar}', strict=True))
예제 #60
0
 def test_remove_circumflex(self):
     assert ('' == ascit('ô'))