def test_is_wishbone_bus_signal(self): for s in WISHBONE_SIGNALS: signal = "%s %s" % (s, "test") assert wu.is_wishbone_bus_signal(signal) for s in WISHBONE_BUS_SIGNALS: signal = s % "test" #print "signal: %s" % signal assert wu.is_wishbone_bus_signal(signal)
def test_is_wishbone_bus_signal_fail(self): assert not wu.is_wishbone_bus_signal("not a wishbone signal")