def test_no_matches(self): """ insure that extra_info returns the empty string if none of the keys match """ port = ListPortInfo() port.foo = "bar" self.assertTrue(extra_info(port) == "")