| 505 | self.assertEqual(watchlists_content, expected_watchlists_content) |
| 506 | |
| 507 | def testCheckLastPushRecently(self): |
| 508 | self.Expect([ |
| 509 | Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), |
| 510 | Cmd("git tag", self.TAGS), |
| 511 | Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), |
| 512 | Cmd("git log -1 --format=%s release_hash", |
| 513 | "Version 3.22.4 (based on abc3)\n"), |
| 514 | Cmd("git log --format=%H abc3..abc123", "\n"), |
| 515 | ]) |
| 516 | |
| 517 | self._state["candidate"] = "abc123" |
| 518 | self.assertEquals(0, self.RunStep( |
| 519 | auto_push.AutoPush, LastReleaseBailout, AUTO_PUSH_ARGS)) |
| 520 | |
| 521 | def testAutoPush(self): |
| 522 | self.Expect([ |