from pathlib import Path
root=Path(__file__).resolve().parents[1]
a=(root/"src/com/lemenzo/messenger/BroadcastActivity.java").read_text()
checks={
"sent green":"sentStatus.setTextColor(getColor(R.color.lemenzo_broadcast_sent))" in a,
"failed neutral":"failedStatus.setTextColor(getColor(R.color.lemenzo_broadcast_time))" in a,
"sent larger":"broadcast_sent_count,message.sent),13.8f,true" in a,
"failed larger":"broadcast_failed_count,message.failed),13.8f,true" in a,
"sending readable":"broadcast_sending_count,pending),13.2f,true" in a,
"time readable":"12.8f,true" in a,
}
b=[k for k,v in checks.items() if not v]
assert not b,b
print("BROADCAST STATUS VISIBILITY VALIDATION: PASS")
