Example #1
0
    def get_log_directory(self):
        """
        Return log directory path based on log_dir attribute.

        :rtype: string
        """
        log_dir = self._get_attribute(attribute='log_dir')
        return log_dir or Defaults.get_log_directory()
Example #2
0
def test_get_log_directory():
    log_directory = Defaults.get_log_directory()
    assert log_directory == '/var/log/mash/'