def parse_incomplete_load_metrics_test(self):
        """Parse single incomplete load metrics definition"""

        res = sf_c.parse_load_metrics([{
            'name': 'test_metric',
            'default_load': 10
        }])

        self.assertEqual(len(res), 1)
        res = res[0]
        self.assertEqual(res.name, 'test_metric')
        self.assertIsNone(res.weight)
        self.assertIsNone(res.primary_default_load)
        self.assertIsNone(res.secondary_default_load)
        self.assertEqual(res.default_load, 10)
 def parse_none_load_metrics_test(self):
     """Parse none load metrics returns None"""
     self.assertIsNone(sf_c.parse_load_metrics(None))
 def parse_empty_load_metrics_test(self):
     """Parse empty load metrics returns None"""
     self.assertIsNone(sf_c.parse_load_metrics(''))