Exemplo n.º 1
0
def test_pt_object_in_list_True_2_objects():
    stop_area = chaos.models.PTobject()
    stop_area.type = 'stop_area'
    stop_area.uri = 'uri1'
    eq_(pt_object_in_list(stop_area, [{'id': 'uri2', 'name': 'stop area name'},
                                      {'id': 'uri1', 'name': 'stop area name'}]), True)
Exemplo n.º 2
0
def test_pt_object_in_list_false():
    stop_area = chaos.models.PTobject()
    stop_area.type = 'stop_area'
    stop_area.uri = 'uri1'
    eq_(pt_object_in_list(stop_area, []), False)