def test_supplier(self): """Test output of supplier list for different enzyme types.""" out = self.StringIO() self.sys.stdout = out EcoRI.suppliers() self.assertIn('Life Technologies', out.getvalue()) self.assertEqual(SnaI.suppliers(), None) EcoRI.all_suppliers() # Independent of enzyme, list of all suppliers self.assertIn('Agilent Technologies', out.getvalue()) batch = EcoRI + SnaI batch.show_codes() self.assertIn('N = New England Biolabs', out.getvalue()) self.sys.stdout = self.sys.__stdout__
def test_supplier(self): """Test output of supplier list for different enzyme types.""" out = self.StringIO() self.sys.stdout = out EcoRI.suppliers() self.assertIn("Thermo Fisher Scientific", out.getvalue()) self.assertIsNone(SnaI.suppliers()) EcoRI.all_suppliers() # Independent of enzyme, list of all suppliers self.assertIn("Agilent Technologies", out.getvalue()) batch = EcoRI + SnaI batch.show_codes() self.assertIn("N = New England Biolabs", out.getvalue()) self.sys.stdout = self.sys.__stdout__