def test_cord1r_01(self): lines = ['cord1r,2,1,4,3'] card = bdf.process_card(lines) card = BDFCard(card) size = 8 card = CORD1R(card) self.assertEquals(card.Cid(), 2) self.assertEquals(card.Rid(), 0) card.write_bdf(size, 'dummy') card.raw_fields()
def test_cord1s_01(self): lines = ['cord1s,2,1,4,3'] card = bdf.process_card(lines) card = BDFCard(card) size = 8 f = StringIO() card = CORD1S(card) self.assertEquals(card.Cid(), 2) self.assertEquals(card.Rid(), 0) card.write_bdf(f, size) card.raw_fields()