Beispiel #1
0
def test_simplejson():
    Out = abe_h.unite('tst2_json', '''{"b_a": "Lawrence Snyder","b_n": "mi sit","ls": 232 }''')
    Expected = u'''\
Lawrence Snyder *mi sit*, 232 likes

```json
{"b_a": "Lawrence Snyder","b_n": "mi sit","ls": 232 }
```
'''
    eq_(Expected,Out)
Beispiel #2
0
def test_simplearbitrary():
    Out = abe_h.unite('tst2_json'
                     ,'qwe!@#)98QweNOT_EVEN_CODE2019874)(!@!('
                     ,'{"author": "Lawrence Snyder","title": "mi sit","likes": 232 }')
    Expected= u'''\
Lawrence Snyder *mi sit*, 232 likes

```json
qwe!@#)98QweNOT_EVEN_CODE2019874)(!@!(
```
'''
    eq_(Expected,Out)
Beispiel #3
0
def test_simplearbitrary():
    Out = abe_h.unite(
        'tst2_json', 'qwe!@#)98QweNOT_EVEN_CODE2019874)(!@!(',
        '{"author": "Lawrence Snyder","title": "mi sit","likes": 232 }')
    Expected = u'''\
Lawrence Snyder *mi sit*, 232 likes

```json
qwe!@#)98QweNOT_EVEN_CODE2019874)(!@!(
```
'''
    eq_(Expected, Out)
Beispiel #4
0
def test_simplejson():
    Out = abe_h.unite(
        'tst2_json',
        '''{"b_a": "Lawrence Snyder","b_n": "mi sit","ls": 232 }''')
    Expected = u'''\
Lawrence Snyder *mi sit*, 232 likes

```json
{"b_a": "Lawrence Snyder","b_n": "mi sit","ls": 232 }
```
'''
    eq_(Expected, Out)