Esempio n. 1
0
 def test_attributes_are_logged_with_values(self):
     args = util.Empty(verbose=True)
     cli.log_flags(args, logger=self.logger)
     result = self.logger._output()
     assert ' verbose ' in result
     assert ' : True' in result
Esempio n. 2
0
 def test_private_attributes_are_not_logged(self):
     args = util.Empty(verbose=True, _private='some value')
     cli.log_flags(args, logger=self.logger)
     result = self.logger._output()
     assert ' _private ' not in result
Esempio n. 3
0
 def test_logs_multiple_object_attributes(self):
     args = util.Empty(verbose=True, adjust_repos=False)
     cli.log_flags(args, logger=self.logger)
     result = self.logger._output()
     assert ' verbose ' in result
     assert ' adjust_repos ' in result