MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / test_diff_non_ascii

Method test_diff_non_ascii

gitless/tests/test_e2e.py:400–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

398 self.fail()
399
400 def test_diff_non_ascii(self):
401 if sys.platform == 'win32':
402 # Skip this test on Windows until we fix Unicode support
403 return
404 contents = '’◕‿◕’©Ä☺’ಠ_ಠ’'
405 utils.write_file(self.TRACKED_FP, contents=contents)
406 out1 = utils.stdout(gl.diff())
407 if '+' + contents not in out1:
408 self.fail('out is ' + out1)
409 out2 = utils.stdout(gl.diff(self.TRACKED_FP))
410 if '+' + contents not in out2:
411 self.fail('out is ' + out2)
412 self.assertEqual(out1, out2)
413
414
415class TestOp(TestEndToEnd):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected