Remove test for original_protection in listing branches
It may not always be there, so stop testing for it's existence and move
on.
@@ -92,7 +92,7 @@ class TestRepository(helper.IntegrationHelper):
with self.recorder.use_cassette(cassette_name):
repository = self.gh.repository('sigmavirus24', 'github3.py')
assert repository is not None
- assert all(b.original_protection['enabled'] is True
+ assert all(isinstance(b, github3.repos.branch.ShortBranch)
for b in repository.branches(protected=True))
def test_code_frequency(self):
