示例#1
0
    def _subcommands(self):
        result = []
        if self.direction:
            result.append(DI(*self.direction))
        else:
            result.append(DI())
        result.append(SI(width=self.charwidth, height=self.charheight))
        result.append(ES(charspace=self.charspace, linespace=self.linespace))
        result.append(LO(origin=self.origin))
        result.append(SL(tan=self.slant))
        result.append(DV(vertical=self.vertical))
        result.append(LB(self.text))

        return result
示例#2
0
def test_SI_03():
    t = SI(3)
    with pytest.raises(Warning):
        t.format
示例#3
0
def test_SI_02():
    t = SI(3, 2)
    assert t.format == b"SI3.00,2.00;"
示例#4
0
def test_SI_01():
    """SI has default values."""
    t = SI()
    assert t.format == b"SI;"
示例#5
0
def test_SI_01():
    '''SI has default values.'''
    t = SI()

    assert t.format == 'SI;'
示例#6
0
def test_SI_03():

    t = SI(3)

    assert py.test.raises(Warning, 't.format')