Пример #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)