"""Project-wide test configuration, including fixutres that can be
used by any module.

Example test: ::

    def test_my_renderer(fakefile):
        assert my_renderer(fakefile) == '..expected result..'

"""
import io
import pytest

@pytest.fixture
def fakefile():
    return io.BytesIO(b'foo')

"""Project-wide test configuration, including fixutres that can be
used by any module.

Example test: ::

    def test_my_renderer(fakefile):
        assert my_renderer(fakefile) == '..expected result..'

"""
import pytest
import mock

@pytest.fixture
def fakefile():
    """A simple file-like object."""
    return mock.Mock(spec=file)

Make fakefile a mock instead of an io object
Make fakefile a mock instead of an io object

Makes it possible to mutate attributes, e.g. the name,
for tests
