diff --git a/tests/unit/mock/loader.py b/tests/unit/mock/loader.py index 80d45ecd..84d5149a 100644 --- a/tests/unit/mock/loader.py +++ b/tests/unit/mock/loader.py @@ -28,7 +28,7 @@ class DictDataLoader(DataLoader): def __init__(self, file_mapping=None): file_mapping = {} if file_mapping is None else file_mapping - assert type(file_mapping) == dict + assert isinstance(file_mapping, dict) super(DictDataLoader, self).__init__()