Beispiel #1
0
 def test_read_file_as_text(self):
     self.assertEqual(
         git_utils.read_file('branch', 'file.txt', universal_newlines=True),
         'this is some text')
Beispiel #2
0
 def test_read_file(self):
     self.assertEqual(git_utils.read_file('branch', 'file.txt'),
                      b'this is some text')