def mediafile_fixture(client_fixture):
    """Test fixture to ensure correct mocking for mediafile."""
    test_mediafile = mediafile.get_instance(
        uri=TEST_URI
    )
    test_mediafile.client = client_fixture

    return test_mediafile
def test_get_instance_creates_mediafile_object():
    """Test mediafile.get_instance creates a MediaFile object."""
    test_mediafile = mediafile.get_instance(TEST_URI)
    expected_repr = "<class 'parker.mediafile.MediaFile'>(%s)" % (
        TEST_URI
    )

    assert isinstance(test_mediafile, mediafile.MediaFile)
    assert isinstance(test_mediafile.client, client.Client)
    assert test_mediafile.__repr__() == expected_repr