#186: Automate media kit sanity tests
---------------------+------------------------------------------------------
Reporter: jlaska | Owner: lili
Type: task | Status: new
Priority: major | Milestone: Automate installation test plan
Component: tests | Version: 1.0
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by robatino):
capacity of a CD = 700 MiB = 734003200 bytes (IEC units)
capacity of a DVD = 4.7 GB = 4700000000 bytes (SI units)
capacity of a 1 GB flash drive = 1000000000 bytes (SI units)
So if you want to convert to larger units, you need to convert separately
to kB and KiB:
size_kB = os.path.getsize(file)/1000
size_KiB = os.path.getsize(file)/1024
and similarly for MB and MiB, and GB and GiB. It's probably simpler to
just use the size in bytes directly, to avoid the extra arithmetic, and
not have to worry about rounding/truncation.
--
Ticket URL: <
https://fedorahosted.org/autoqa/ticket/186#comment:4>
AutoQA <
http://autoqa.fedorahosted.org>
Automated QA project