(self)
| 377 | self.assertEqual(out1, out2) |
| 378 | |
| 379 | def test_basic_diff_relative(self): |
| 380 | utils.write_file(self.TRACKED_FP, contents='contents_tracked') |
| 381 | utils.write_file(self.DIR_TRACKED_FP, contents='contents_dir_tracked') |
| 382 | os.chdir(self.DIR) |
| 383 | out1 = utils.stdout(gl.diff()) |
| 384 | if '+contents_tracked' not in out1: |
| 385 | self.fail() |
| 386 | if '+contents_dir_tracked' not in out1: |
| 387 | self.fail() |
| 388 | rel_dir_tracked_fp = os.path.relpath(self.DIR_TRACKED_FP, self.DIR) |
| 389 | out2 = utils.stdout(gl.diff(rel_dir_tracked_fp)) |
| 390 | if '+contents_dir_tracked' not in out2: |
| 391 | self.fail() |
| 392 | |
| 393 | def test_diff_dir(self): |
| 394 | fp = 'dir/dir/f' |
nothing calls this directly
no outgoing calls
no test coverage detected