示例#1
0
def filter_constructor_object_type_valid():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object,'stop_area', None), True)
示例#2
0
def filter_constructor_uri_invalid_pt_object_type_valid():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object,'stop_area', 'c'), False)
示例#3
0
def filter_constructor_not_uri_and_not_pt_object_type():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object,None, None), False)
示例#4
0
def filter_constructor_uris_valid_pt_object_type_invalid():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object,'network', ['c', 'b']), True)
def filter_constructor_object_type_valid():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object, 'stop_area', None), True)
def filter_constructor_not_uri_and_not_pt_object_type():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object, None, None), False)
def filter_constructor_uri_invalid_pt_object_type_valid():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object, 'stop_area', 'c'), False)
def filter_constructor_uris_valid_pt_object_type_invalid():
    one_pt_object = Obj()
    one_pt_object.uri = 'b'
    one_pt_object.type = 'stop_area'
    eq_(is_pt_object_valid(one_pt_object, 'network', ['c', 'b']), True)