def test_package_integrity(): Package.create(steamid='03', kind='game') with pytest.raises(IntegrityError): Package.create(steamid='03', kind='game')