Write tests for get_distgit_files
This also fixes that the function returns files content as str rather
than bytes.
Set 1 to NET_TIMEOUT for tests so that functions decorated with retry
run faster so that tests run faster as a result.
Signed-off-by: Chenxiong Qi <cqi@redhat.com>