OLD | NEW |
| (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')) | |
OLD | NEW |