Commit 87cfc381 authored by David Mendez's avatar David Mendez
Browse files

Separator identifier: add test case for tab separator

parent e496fa75
......@@ -127,3 +127,14 @@ class AutomaticSeparatorTest(unittest.TestCase):
separator_got = separator_identifier.get_separator(test_raw_ids, parsed_from)
self.assertEqual(separator_must_be, separator_got, msg='The separator was not identified correctly!')
def test_identifies_separator_10(self):
"""
Test that it identifies the separator correctly when there are no ids at all
"""
test_raw_ids = 'CHEMBL1905569\tCHEMBL3659411\tCHEMBL1179177'
parsed_from = 'MOLECULE_CHEMBL_IDS'
separator_must_be = '\t'
separator_got = separator_identifier.get_separator(test_raw_ids, parsed_from)
self.assertEqual(separator_must_be, separator_got, msg='The separator was not identified correctly!')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment