for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import unittest
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
from foil.strings import camel_to_snake, snake_to_camel
class TestSnakeCamel(unittest.TestCase):
def test_camel_to_snake_case(self):
expected = 'hello_world'
result = camel_to_snake('helloWorld')
self.assertEqual(expected, result)
def test_snake_to_camel_case(self):
expected = '123HelloWorld'
result = snake_to_camel('123_hello_world')
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.