def test_get_interaction_name_empty_filepath(self): filepath = '' actual = data_utils.get_interaction_name(filepath) expected = '' self.assertEquals(actual, expected)
def test_get_interaction_name_male_first(self): filepath = "/test/test/0209_m01_f02.csv" actual = data_utils.get_interaction_name(filepath) expected = "0209_m01_f02" self.assertEquals(actual, expected)
def test_get_interaction_name_female_first(self): filepath = '/test/test/0209_f01_m02.csv' actual = data_utils.get_interaction_name(filepath) expected = '0209_m02_f01' self.assertEquals(actual, expected)
def test_get_interaction_name_empty_filepath(self): filepath = "" actual = data_utils.get_interaction_name(filepath) expected = "" self.assertEquals(actual, expected)