Skip to content

Instantly share code, notes, and snippets.

@kaushik94
Created June 17, 2015 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaushik94/850048c639c04e4a2204 to your computer and use it in GitHub Desktop.
Save kaushik94/850048c639c04e4a2204 to your computer and use it in GitHub Desktop.
test_element_symbol_reformatter
@pytest.mark.parametrize(
"unformatted_element_string, formatted_element_string", [
('si', 'Si'),
('sI', 'Si'),
('Si', 'Si'),
('c', 'C'),
('C', 'C'),
])
def test_element_symbol_reformatter(
unformatted_element_string, formatted_element_string):
assert reformat_element_symbol(
unformatted_element_string) == formatted_element_string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment