def METHOD_NAME(self):
    """(COMMON/UTILS): test parsing of did filter string"""
    test_cases = [{
        'input': 'type=all,length=3,length>4,length>=6,length<=7,  test=b, created_after=1900-01-01T00:00:00.000Z',
        'expected_filter': {'length': 3, 'length.gt': 4, 'length.gte': 6, 'length.lte': 7, 'test': 'b', 'created_after': datetime.datetime.strptime('1900-01-01T00:00:00.000Z', '%Y-%m-%dT%H:%M:%S.%fZ')},
        'expected_type': 'all'
    }, {
        'input': 'type=FILE',
        'expected_filter': {},
        'expected_type': 'file'
    }, {
        'input': '',
        'expected_filter': {},
        'expected_type': 'collection'
    }]
    for test_case in test_cases:
        filters, type_ = parse_did_filter_from_string(test_case['input'])
        assert test_case['expected_filter'] == filters
        assert test_case['expected_type'] == type_
    with pytest.raises(InvalidType):
        input_ = 'type=g'
        parse_did_filter_from_string(input_)