コード例 #1
0
ファイル: abe_h_tests.py プロジェクト: RvS-CdE/ABE_h
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
ファイル: abe_h_tests.py プロジェクト: RvS-CdE/ABE_h
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)