def testeAdicionaUmMicro(self): self.micro = Micro("001", "Micro ultra veloz", 500, 4) self.micro.codPatrimonio |should| be("001") self.micro.descricao |should| equal_to("Micro ultra veloz") self.micro.hd |should| equal_to(500) self.micro.memoria |should| equal_to(4)
def assert_position(self, location, expected_index): self.t3.get_position(location) |should| be(expected_index)