Top

phi.tests.test_dummy module

lass A(object):
   """docstring for A."""
   _S = None
   @property
   def S(self):
       return A._S
lass B(A):
   """docstring for B."""
lass Compile(A):
   """docstring for Compile ."""
lass TestDummy(object):
   """docstring for TestDummy."""
   def test_global(self):
       a = A()
       b = B()
       c = Compile()
       A._S = "HOLA"
       assert b.S == a.S + ""

Classes

class A

docstring for A.

class A(object):
    """docstring for A."""

    _S = None

    @property
    def S(self):
        return A._S

Ancestors (in MRO)

  • A
  • __builtin__.object

Instance variables

var S

class B

docstring for B.

class B(A):
    """docstring for B."""

Ancestors (in MRO)

  • B
  • A
  • __builtin__.object

Instance variables

var S

Inheritance: A.S

class Compile

docstring for Compile .

class Compile(A):
    """docstring for Compile ."""

Ancestors (in MRO)

Instance variables

var S

Inheritance: A.S

class TestDummy

docstring for TestDummy.

class TestDummy(object):
    """docstring for TestDummy."""

    def test_global(self):
        a = A()
        b = B()
        c = Compile()

        A._S = "HOLA"

        assert b.S == a.S + ""

Ancestors (in MRO)

Methods

def test_global(

self)

def test_global(self):
    a = A()
    b = B()
    c = Compile()
    A._S = "HOLA"
    assert b.S == a.S + ""