def is_named(self, filename):
        self.is_file()
        if not isinstance(filename, str_types):
            raise TypeError('given filename arg must be a path')
        val_filename = os.path.basename(os.path.abspath(self.val))
        if val_filename != filename:
            self._err('Expected filename <%s> to be equal to <%s>, but was not.' % (val_filename, filename))
        return self
Both `pk` and the actual primary key name are valid in `Meta.fields`.
dataset/ETHPy150Open ActivisionGameScience/assertpy/assertpy/assertpy.py/AssertionBuilder.is_named--crossover with--dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_model_serializer.py/TestRegularFieldMappings.test_pk_fields