[tsmon] Strengthen and simplify Target.__hash__().

While I'm here, tidy up the code and tests a little.

R=ddoman@chromium.org

Bug: 991549
Change-Id: Id916b61f51716af800bd4de97a434322c36447f1
Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/1743454
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Paul Wankadia <junyer@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#24973}
Cr-Mirrored-From: https://chromium.googlesource.com/infra/infra
Cr-Mirrored-Commit: 89d4f570994aa9c729b3c106b4b97a26b3984cc6
2 files changed
tree: cf4efefbfab31f0b2710158292c26862996aa596
  1. .coveragerc
  2. infra_libs/
  3. setup.py