def METHOD_NAME(empty_swagger_spec, pet_spec):
    Pet = create_model_type(empty_swagger_spec, 'Pet', pet_spec)
    expected = set(['id', 'category', 'name', 'photoUrls', 'tags'])
    pet = Pet(id=1, name='Darwin')
    assert set(dir(pet)) == expected
    assert pet == Pet(id=1, name='Darwin')
    assert pet != Pet(id=2, name='Fido')
    assert "Pet(category=None, id=1, name='Darwin', photoUrls=None, tags=None)"\
           == repr(pet)