예제 #1
0
 def test_get_bus_name_string(self):
     bus_x = Bus('bus_x')
     assert Bus.get_bus_name(bus_x) == 'bus_x'
예제 #2
0
 def test_get_bus_name_none(self):
     bus_name = Bus.get_bus_name(self.bus)
     assert bus_name is None