class SampleTest(TestCase): def setUp(self): self.sample = Sample() self.sample.add_completed_process('Receive Sample EG 6.1', datetime.strptime('01-06-15', '%d-%m-%y')) self.sample.add_completed_process('Read and Eval SSQC', datetime.strptime('16-07-15', '%d-%m-%y')) def tearDown(self): pass def test_status(self): assert self.sample.status == 'sample_qc'
def setUp(self): self.sample = Sample() self.sample.add_completed_process('Receive Sample EG 6.1', datetime.strptime('01-06-15', '%d-%m-%y')) self.sample.add_completed_process('Read and Eval SSQC', datetime.strptime('16-07-15', '%d-%m-%y'))