def test_binary_mode(self):
    'Test that it uses binary mode.'
    with tools.open_archive(self.base_file, 'r') as f:
        self.assertEqual(f.mode, 'rb')
        self.assertIsInstance(f.read(), bytes)
Test that it uses binary mode.
def test_binary_mode(self):
    
    with tools.open_archive(self.base_file, 'r') as f:
        self.assertEqual(f.mode, 'rb')
        self.assertIsInstance(f.read(), bytes)