Skip to content

Instantly share code, notes, and snippets.

@walkerdb
Last active November 21, 2015 23:08
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 walkerdb/79e9c47e43ee5d8e3688 to your computer and use it in GitHub Desktop.
Save walkerdb/79e9c47e43ee5d8e3688 to your computer and use it in GitHub Desktop.
class TestExtentSplitter(unittest.TestCase):
def setUp(self):
(...)
def test_split_first_two_element_extent_string(self):
split_extent = split_extents(self.extent_1_raw_text)
self.assertEqual(split_extent, self.extent_1_target_output)
# def (remaining completed tests...), etc.
## Tests to write:
# When there is a parenthetical extent, this should be split
# off as well, but should retain parentheses
# Same with extents in brackets
# If a parenthetical extent does not have numbers in it, do not
# split
# Ensure extents are also split by the " in " keyword
# Ensure trailing whitespace is removed
# etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment