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

Side by Side Diff: appengine/findit/common/test/diff_test.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports Created 4 years, 1 month 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
(Empty)
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
3 # found in the LICENSE file.
4
5 import unittest
6
7 from common import diff
8 from common.diff import ChangeType
9
10 class DiffTest(unittest.TestCase):
11 def testKnownChangeTypes(self):
12 for change_type in [ChangeType.ADD, ChangeType.DELETE, ChangeType.MODIFY,
13 ChangeType.COPY, ChangeType.RENAME]:
14 self.assertTrue(diff.IsKnownChangeType(change_type))
15
16 def testUnknownChangeType(self):
17 self.assertFalse(diff.IsKnownChangeType('unknown change type'))
OLDNEW
« no previous file with comments | « appengine/findit/common/test/dependency_test.py ('k') | appengine/findit/common/test/git_repository_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698