[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 3/3] Add test cases for the new Size class.



On 09/04/2010 04:56 AM, dcantrell redhat com wrote:
From: David Cantrell<dcantrell redhat com>

---
  tests/storage_test/Makefile.am  |    6 +++
  tests/storage_test/size_test.py |   87 +++++++++++++++++++++++++++++++++++++++
  2 files changed, 93 insertions(+), 0 deletions(-)
  create mode 100755 tests/storage_test/size_test.py

+++ b/tests/storage_test/size_test.py
+    def _prefixTestHelper(self, bytes, exp, prefix, abbr):

The 'exp' parameter name is misleading, because someone might want to "fix" this:

+        c = bytes * exp

to
  c = bytes ** exp


Ales


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]