示例#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)
示例#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)
示例#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)
示例#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)