def test_user_from_email_address_not_found(self): '''Email address not there, no user for you''' self.assertNone(User.user_from_email_address('*****@*****.**'))
def test_user_from_email_address(self): '''Retrieve a user from one of her e-mail addresses''' self.assertEqual( User.user_from_email_address(self.address2).key(), self.user.key())