示例#1
0
 def test_run(self, mock_stdout):
     self.accessor.drop_all_metrics()
     for metric in self.metrics:
         self.accessor.create_metric(bg_test_utils.make_metric_with_defaults(metric))
     bgutil.main(["--driver=memory", "read", "**"], self.accessor)
     output = mock_stdout.getvalue()
     for metric in self.metrics:
         self.assertIn(metric, output)
示例#2
0
 def test_run(self, mock_stdout):
     self.accessor.drop_all_metrics()
     for metric in self.metrics:
         self.accessor.create_metric(bg_test_utils.make_metric(metric))
     bgutil.main(["--driver=memory", "read", "**"], self.accessor)
     output = mock_stdout.getvalue()
     for metric in self.metrics:
         self.assertIn(metric, output)
示例#3
0
 def test_run(self, mock_stdout):
     self.accessor.drop_all_metrics()
     for metric in self.metrics:
         self.accessor.create_metric(self.make_metric(metric))
     bgutil.main(['--driver=memory', 'read', '**'], self.accessor)
     output = mock_stdout.getvalue()
     for metric in self.metrics:
         self.assertIn(metric, output)
示例#4
0
 def test_run(self):
     bgutil.main(['--driver=memory', 'read', 'foo'])