Skip to content

Commit

Permalink
add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
glibin committed Feb 26, 2020
1 parent e754720 commit 68fdbcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions json_processor/test/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ def test_simple_return(self):
self.assertEqual(json_process('Hello, world!', {}), 'Hello, world!')
self.assertEqual(json_process({'a': 1}, {}), {'a': 1})
self.assertEqual(json_process({'type': 'object', 'value': {'id': 1}}, {}), {'id': 1})

def test_unsupported(self):
self.assertRaises(Exception, json_process, {'type': 'unsupported'}, {})

0 comments on commit 68fdbcf

Please sign in to comment.