I couldn't find a specific law from Australia, but many lending institutions offer a 6 month deferral of payments for parental leave. I would also assume that if the second parent plans to return to work, then the second income would be included to calculate serviceability.
Denying a black man or a woman when you grant the loan to someone with the exact credit history otherwise, for example.
If a single woman makes enough to pay the mortgage, you shouldn't be denying her the loan based on your moralizing on her inability to survive without a man's wages.
And I say that because maybe, just maybe, the poorly phrased "I wouldn't have invested if I knew you were going to get pregnant" actually had to do with the founder not being able to "service" her company. Whether the founder could dedicate enough time, as perceived by said investor, is a relevant concern to that investor. Is that sexist? I'm not sure. Is it a shitty thing to say (in that way)? Most definitely. Is it wrong to use pregnancy as a "signal" (positive or negative) for investment? I have zero ideas considering I'm not an investor.
Again, that is not what is illegal. What is discrimination is to pick one candidate with equal background ability, and drive over another. Yes, it is wrong to use it as a signal for not being invested in a company.
For instance check this out: http://www.justanswer.com/ca-employment-law/61oi7-small-star...
I'm not commenting on the rightness or wrongness here .. I think startups are very unique and no blanket statements make sense. For example, if it were a baby food startup or pregnancy app, I'm sure it would be a tremendous advantage to be pregnant or a new mother. (talk about talking to users)
It may be stupid to turn down a great founder for this reason, it may be ass-holish, but it's not illegal.