| Total Complexity | 2 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | #!/usr/bin/env python |
||
| 11 | class TestShortHash(unittest.TestCase): |
||
| 12 | |||
| 13 | def test_different(self): |
||
| 14 | self.assertNotEqual(utils.short_hash(True), utils.short_hash(False)) |
||
| 15 | |||
| 16 | def test_hashing(self): |
||
| 17 | # So that it does not change with time and break old hashes. |
||
| 18 | self.assertEqual("7fc56270e79d5ed678fe0d61f8370cf623e75af33a3ea00cfc", |
||
| 19 | utils.short_hash("ABCDE")) |