def test_get_bus_name_string(self): bus_x = Bus('bus_x') assert Bus.get_bus_name(bus_x) == 'bus_x'
def test_get_bus_name_none(self): bus_name = Bus.get_bus_name(self.bus) assert bus_name is None