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