def test_memory_units(manager_nospawn, minimal_conf_noscreen, patched_memory, unit, expects):
    """Test no text when free space over threshold"""
    widget = patched_memory.Memory(measure_mem=unit)
    config = minimal_conf_noscreen
    config.screens = [libqtile.config.Screen(top=libqtile.bar.Bar([widget], 10))]
    manager_nospawn.start(config)
    manager_nospawn.c.widget["memory"].eval("self.update(self.poll())")
    assert manager_nospawn.c.widget["memory"].info()["text"] == expects
Test no text when free space over threshold
test/widgets/test_memory.py