diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-09-27 21:12:26 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-09-27 21:12:26 +0100 |
| commit | 67573e8dc33c70cd8cc083f8256e931187e967b5 (patch) | |
| tree | 4d5e339024c03688f228d3020cebb189d1322781 | |
| parent | 6cdf63d2475452347f0e404bb7602d552be55a42 (diff) | |
Rearrange tests slightly
| -rw-r--r-- | tests/jq_tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py index a83971f..de0c23b 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -4,18 +4,18 @@ from jq import jq @istest -def dot_operator_does_nothing_to_string_input(): +def output_of_dot_operator_is_input(): assert_equal( "42", - str(jq(".").transform("42", raw_input=True)) + jq(".").transform("42").json() ) @istest -def dot_operator_does_nothing_to_json_input(): +def input_string_is_parsed_to_json_if_raw_input_is_true(): assert_equal( - '"42"', - str(jq(".").transform("42")) + 42, + jq(".").transform("42", raw_input=True).json() ) |
