old_contents: from radar.utils import snake_case_keys, camel_case_keys
  
  
  def test_snake_case_keys():
      assert snake_case_keys({
          'fooBar': [
              {
                  'fooBar': 'helloWorld'
              }
          ]
      }) == {
          'foo_bar': [
              {
                  'foo_bar': 'helloWorld'
              }
          ]
      }
  
  
  def test_camel_case_keys():
      assert camel_case_keys({
          'foo_bar': [
              {
                  'foo_bar': 'hello_world'
              }
          ]
      }) == {
          'fooBar': [
              {
                  'fooBar': 'hello_world'
              }
          ]
      }
new_contents: from radar.utils import (
      snake_case,
      camel_case,
      snake_case_keys,
      camel_case_keys
  )
  
  
  def test_snake_case():
      return snake_case('fooBar') == 'foo_bar'
  
  
  def test_camel_case():
      return snake_case('foo_bar') == 'fooBar'
  
  
  def test_snake_case_keys():
      assert snake_case_keys({
          'fooBar': [
              {
                  'fooBar': 'helloWorld'
              }
          ]
      }) == {
          'foo_bar': [
              {
                  'foo_bar': 'helloWorld'
              }
          ]
      }
  
  
  def test_camel_case_keys():
      assert camel_case_keys({
          'foo_bar': [
              {
                  'foo_bar': 'hello_world'
              }
          ]
      }) == {
          'fooBar': [
              {
                  'fooBar': 'hello_world'
              }
          ]
      }
subject: Test case functions