Unit test map access Python