Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: infra/services/gnumbd/test/inner_loop_test_definitions.py

Issue 355153002: Refactor infra git libs and testing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra@fake_testing_support
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import collections 5 import collections
6 6
7 from infra.services.gnumbd import inner_loop as gnumbd 7 from infra.services.gnumbd import inner_loop as gnumbd
8 content_of = gnumbd.content_of 8 content_of = gnumbd.content_of
9 9
10 REAL = 'refs/heads/master' 10 REAL = 'refs/heads/master'
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 CHECKPOINT('%r has a timestamp behind %r' % ( 498 CHECKPOINT('%r has a timestamp behind %r' % (
499 user_commit.hsh, base_commit.hsh), include_committer=True) 499 user_commit.hsh, base_commit.hsh), include_committer=True)
500 RUN() 500 RUN()
501 CHECKPOINT('Presto! Timestamp is fixed', include_committer=True) 501 CHECKPOINT('Presto! Timestamp is fixed', include_committer=True)
502 assert content_of(origin[REAL].commit) == content_of(user_commit) 502 assert content_of(origin[REAL].commit) == content_of(user_commit)
503 assert origin[REAL].commit.parent == base_commit 503 assert origin[REAL].commit.parent == base_commit
504 assert ( 504 assert (
505 origin[REAL].commit.data.committer.timestamp.secs > 505 origin[REAL].commit.data.committer.timestamp.secs >
506 origin[REAL].commit.parent.data.committer.timestamp.secs 506 origin[REAL].commit.parent.data.committer.timestamp.secs
507 ) 507 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698