How do I test a collision between two Rect objects to see if one collides with the other at a certain position?

Code:
pseudocode ---

if event.type == pygame.MOUSEBUTTONDOWN:
    if mouseRect(imageRect.bottomleft):
        action1()
    if mouseRect(imageRect.bottomright):
        action2()