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
def test_SI_03(): t = SI(3) with pytest.raises(Warning): t.format
def test_SI_02(): t = SI(3, 2) assert t.format == b"SI3.00,2.00;"
def test_SI_01(): """SI has default values.""" t = SI() assert t.format == b"SI;"
def test_SI_01(): '''SI has default values.''' t = SI() assert t.format == 'SI;'
def test_SI_03(): t = SI(3) assert py.test.raises(Warning, 't.format')