Exemplo n.º 1
0
def test_FT_05():
    '''Mandatory parameters missing raises Warning at format time.'''
    t = FT()
    t.space = .23
    assert t.type is None
    assert t.space == 0.23
    assert t.angle is None
    assert raises(Warning, 't.format')
Exemplo n.º 2
0
def test_FT_05( ):
    '''Mandatory parameters missing raises Warning at format time.'''
    t = FT( )
    t.space = .23
    assert t.type is None
    assert t.space == 0.23
    assert t.angle is None
    assert raises(Warning, 't.format')
Exemplo n.º 3
0
def test_FT_05():
    """Mandatory parameters missing raises Warning at format time."""
    t = FT()
    t.space = .23
    assert t.type is None
    assert t.space == 0.23
    assert t.angle is None
    with raises(Warning):
        t.format
Exemplo n.º 4
0
 def _subcommands(self):
     return [FT(self.filltype, self.space, self.angle)]
Exemplo n.º 5
0
def test_FT_01():
    t = FT()
    assert t.type is None
    assert t.space is None
    assert t.angle is None
    assert t.format == 'FT;'
Exemplo n.º 6
0
def test_FT_04():
    t = FT(2, .23, 80.5)
    assert t.type == 2
    assert t.space == 0.23
    assert t.angle == 80.5
    assert t.format == 'FT2,0.23,80.5;'
Exemplo n.º 7
0
def test_FT_03():
    t = FT(2, .23)
    assert t.type == 2
    assert t.space == 0.23
    assert t.format == 'FT2,0.23;'
Exemplo n.º 8
0
def test_FT_02():
    t = FT(2)
    assert t.type == 2
    assert t.format == 'FT2;'