"""Test for the name inject utility."""

from drudge import Drudge


def test_drudge_injects_names():
    """Test the name injection method of drudge."""

    dr = Drudge(None)  # Dummy drudge.
    string_name = 'string_name'
    dr.set_name(string_name)
    dr.set_name(1, 'one')

    dr.inject_names(suffix='_')

    assert string_name_ == string_name
    assert one_ == 1

Add tests for name injection
Add tests for name injection

Since the name injection facility could taint the entire global
namespace of the module, its test is put into a separate module.
