converting assert equality to assert truthiness