'Show that __iter__ is called when refreshing.'

def test_refresh_conditional(self):

    with mock.patch.object(GitHubIterator, '__iter__') as i:
        self.instance.refresh(True)
        assert (i.called is True)
