Did I find the right examples for you? yes no

All Samples(30)  |  Call(0)  |  Derive(19)  |  Import(11)

src/p/y/python-pptx-HEAD/tests/test_util.py   python-pptx(Download)
)
 
from .unitutil import TestCase
 
 
class TestCollection(TestCase):
    """Test Collection"""
    def setUp(self):
        self.collection = Collection()
 

src/p/y/python-pptx-HEAD/tests/shapes/test_table.py   python-pptx(Download)
from ..oxml.unitdata.table import a_tc, a_tcPr, a_txBody
from ..oxml.unitdata.text import a_bodyPr, a_p, an_r, a_t
from ..unitutil import actual_xml, TestCase
 
 
class Test_CellCollection(TestCase):
    """Test _CellCollection"""
    def setUp(self):
        tr_xml = (
            '<a:tr %s h="370840"><a:tc><a:txBody><a:p/></a:txBody></a:tc><a:t'
class Test_Column(TestCase):
    """Test _Column"""
    def setUp(self):
        gridCol_xml = '<a:gridCol %s w="3048000"/>' % nsdecls('a')
        test_gridCol_elm = parse_xml_bytes(gridCol_xml)
class Test_ColumnCollection(TestCase):
    """Test _ColumnCollection"""
    def setUp(self):
        tbl_xml = (
            '<a:tbl %s><a:tblGrid><a:gridCol w="3048000"/><a:gridCol w="30480'
class Test_Row(TestCase):
    """Test _Row"""
    def setUp(self):
        tr_xml = (
            '<a:tr %s h="370840"><a:tc><a:txBody><a:p/></a:txBody></a:tc><a:t'

src/p/y/python-pptx-HEAD/tests/parts/test_part.py   python-pptx(Download)
from pptx.parts.part import PartCollection
 
from ..unitutil import TestCase
 
 
class TestPartCollection(TestCase):

src/p/y/python-pptx-HEAD/tests/parts/test_image.py   python-pptx(Download)
from pptx.util import Px
 
from ..unitutil import absjoin, TestCase, test_file_dir
 
 
class TestImage(TestCase):
    """Test Image"""
    def test_construction_from_file(self):
        """Image(path) constructor produces correct attribute values"""
        # exercise ---------------------
class TestImageCollection(TestCase):
    """Test ImageCollection"""
    def test_add_image_returns_matching_image(self):
        pkg = Package.open(images_pptx_path)
        matching_idx = 4

src/p/y/python-pptx-HEAD/tests/parts/test_coreprops.py   python-pptx(Download)
from pptx.parts.coreprops import CoreProperties
 
from ..unitutil import TestCase
 
 
class TestCoreProperties(TestCase):

src/p/y/python-pptx-HEAD/tests/oxml/test_coreprops.py   python-pptx(Download)
 
from .unitdata.coreprops import a_coreProperties
from ..unitutil import TestCase
 
 
class TestCT_CoreProperties(TestCase):

src/p/y/python-pptx-HEAD/tests/oxml/shapes/test_table.py   python-pptx(Download)
 
from ...oxml.unitdata.table import a_tbl, test_table_elements, test_table_xml
from ...unitutil import TestCase
 
 
class TestCT_Table(TestCase):
class TestCT_TableCell(TestCase):
    """Test CT_TableCell"""
    def test_anchor_property_value_is_correct(self):
        # setup ------------------------
        cases = (

src/p/y/python-pptx-HEAD/tests/oxml/shapes/test_picture.py   python-pptx(Download)
from pptx.oxml.shapes.picture import CT_Picture
 
from ...unitutil import TestCase
 
 
class TestCT_Picture(TestCase):

src/p/y/python-pptx-HEAD/tests/oxml/shapes/test_graphfrm.py   python-pptx(Download)
from pptx.oxml.shapes.graphfrm import CT_GraphicalObjectFrame
 
from ...unitutil import TestCase
 
 
class TestCT_GraphicalObjectFrame(TestCase):

src/p/y/python-pptx-HEAD/tests/oxml/shapes/test_autoshape.py   python-pptx(Download)
    a_gd, a_prstGeom, an_avLst, an_spPr, test_shape_elements
)
from ...unitutil import actual_xml, TestCase
 
 
class TestCT_Shape(TestCase):
    """Test CT_Shape"""
    def test_is_autoshape_distinguishes_auto_shape(self):
        """CT_Shape.is_autoshape distinguishes auto shape"""
        # setup ------------------------

  1 | 2  Next