/usr/lib/python2.7/dist-packages/preggy/__init__.py is in python-preggy 1.1.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # -*- coding: utf-8 -*-
'''preggy is an assertion library for Python. (What were you ``expect()``ing?)
EXAMPLE
=======
from preggy import expect
def test_roses_are_red():
rose = Rose()
expect(rose.color).to_equal('red')
def test_violets_are_not_red():
violet = Violet()
expect(violet.color).not_to_equal('red')
For more info:
http://heynemann.github.io/preggy
'''
# preggy assertions
# https://github.com/heynemann/preggy
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2013 Bernardo Heynemann heynemann@gmail.com
# flake8: noqa
from __future__ import absolute_import
from preggy.core import (assertion, create_assertions, Expect as expect)
from preggy.assertions import *
from preggy.__meta__ import __version__
__version__ = __version__
|