def METHOD_NAME(self):
    '''
    Test can_view with incorrect formats when datastore_active is False.
    '''
    formats = ['TXT', 'txt', 'doc', 'JSON']
    for resource_format in formats:
        data_dict = {'resource': {'datastore_active': False,
                                  'format': resource_format}}
        assert not self.p.can_view(data_dict)