I am new to writing python unit tests, Please help me to write test cases for the below function which is having only print statements instead of return statements.
import os
from pwd import getpwuid
from grp import getgrgid
import time
def info(self):
if self.f: // if -f flag pass with file names then it will be trigger
for i in self.f:
owner = getpwuid(os.stat(i).st_uid).pw_name
group = getgrgid(os.stat(i).st_gid).gr_name
per = oct(os.stat(i).st_mode)[-3:]
t = os.stat(i).st_mtime
print("{} is owned by: {} , group by {} with "
"permission {} and last modified on {}"
.format(i, owner, group, per, time.ctime(t)))