def testHasNoInvites(self): """Verify that if the user has no invites, they can't invite""" u = User() u.invite_ct = 0 self.assertFalse(u.has_invites(), 'User should have no invites') self.assertFalse( u.invite('*****@*****.**'), 'Should not be able to invite a user')
def testHasNoInvites(self): """Verify that if the user has no invites, they can't invite""" u = User() u.invite_ct = 0 self.assertFalse(u.has_invites(), 'User should have no invites') self.assertFalse(u.invite('*****@*****.**'), 'Should not be able to invite a user')