def test_qdatastream_status_count():
 values = vars(QDataStream).values()
 status_vals = [e for e in values if isinstance(e, QDataStream.Status)]
 assert (len(status_vals) == 4)

def test_qdatastream_status_count ( ) : values = vars ( QDataStream ) . values ( ) status_vals = [ e for e in values if isinstance ( e , QDataStream . Status ) ] assert ( len ( status_vals ) == 4 )
make sure no new members are added to qdatastream .