(self, script, docstring=False, assertion=False)
| 1051 | self.assertFalse(is_hardlink(pycs[1], pycs[2])) |
| 1052 | |
| 1053 | def check_hardlinks(self, script, docstring=False, assertion=False): |
| 1054 | pycs = get_pycs(script) |
| 1055 | self.assertEqual(is_hardlink(pycs[0], pycs[1]), |
| 1056 | not assertion) |
| 1057 | self.assertEqual(is_hardlink(pycs[0], pycs[2]), |
| 1058 | not assertion and not docstring) |
| 1059 | self.assertEqual(is_hardlink(pycs[1], pycs[2]), |
| 1060 | not docstring) |
| 1061 | |
| 1062 | def test_hardlink(self): |
| 1063 | # Test deduplication on all combinations |
no test coverage detected