def test_long_nested_module() -> None: """ Test long nested case. """ # Given module = Module("toto.titi.tete.tata") # When parent = get_parent(module) # Then assert parent == Module("toto.titi.tete")
def test_simple_module() -> None: """ Test simple case. """ # Given module = Module("toto") # When parent = get_parent(module) # Then assert parent == Module("")
def test_nested_module() -> None: """ Test nested case. """ # Given module = Module("toto.tata") # When parent = get_parent(module) # Then assert parent == Module("toto")
def test_empty() -> None: """ Test empty case. """ # Given module = Module("") # When parent = get_parent(module) # Then assert parent == ""