def parse_partial_correlation_desc_test(self): """Parse partial correlation description raises error""" with self.assertRaises(CLIError): sf_c.correlation_desc('test_svc', None)
def parse_complete_correlation_desc_test(self): """Parse a single correlation description""" res = sf_c.correlation_desc('test', 'Affinity') self.assertEqual(res.service_name, 'test') self.assertEqual(res.scheme, 'Affinity')
def parse_none_correlation_desc_test(self): """Parse None correlation description returns None""" self.assertIs(sf_c.correlation_desc(None, None), None)