def test_string_to_module_and_class_2_period(): """Tests handling of string with more than one period.""" string = 'a.b.c' components = conf.string_to_module_and_class(string) assert components['module'] == 'a.b' assert components['class'] == 'c'
def test_string_to_module_and_class_one_period(): """Tests handling of string with single period.""" string = 'a.b' components = conf.string_to_module_and_class(string) assert components['module'] == 'a' assert components['class'] == 'b'