def gw(self, hsb, e): """Verify that a hsb value is properly transformed into a rgb value""" r = Utils.hsb2rgb(hsb) TestUtils.equal_list(self, r, e)
def gw(self, a, e): """Verify that None rows are filtered out a frequency count.""" r = Utils.filter_none_from_frequency_count(a) TestUtils.equal_list(self, r, e)
def gw(self, a, e): """Verify that a frequency count can be converted into an occurrence list.""" r = Utils.frequency_count2occurrence_list(a) TestUtils.equal_list(self, r, e)
def gw(self, lst, dx, e): """Verify that the smallest element is incremented.""" Utils.increment_smallest(lst, dx) TestUtils.equal_list(self, lst, e)
def gw(self, a, e): r = Utils.flatten_np_array(a) TestUtils.equal_list(self, r, e)
def gw(self, a, e): r = Utils.filter_array(a) TestUtils.equal_list(self, r, e)