Skip to content

Commit

Permalink
add contrib/utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgolec committed May 14, 2024
1 parent 552611e commit 67477eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/contrib/util_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import unittest

from schwab.contrib.util import HeuristicJsonDecoder


class HeuristicJsonDecoderTest(unittest.TestCase):
def test_raw_string_decodes(self):
self.assertEqual(HeuristicJsonDecoder().decode_json_string(
r'{"\\\\\\\\": "test"}'),
{r'\\\\': 'test'})


def test_replace_backslashes(self):
# TODO: Actually collect some failing use cases...
pass

0 comments on commit 67477eb

Please sign in to comment.