A motorist stopped by police smelt of cannabis and had bloodshot eyes, heard a court.