class documentation

class TestPadWidth:

View In Hierarchy

Undocumented

Method test​_bad​_type Undocumented
Method test​_misshaped​_pad​_width Undocumented
Method test​_misshaped​_pad​_width​_2 Undocumented
Method test​_negative​_pad​_width Undocumented
Method test​_pad​_width​_as​_ndarray Undocumented
Method test​_zero​_pad​_width Undocumented
@pytest.mark.parametrize('pad_width, dtype', [('3', None), ('word', None), (None, None), (object(), None), (3.4, None), (((2, 3, 4), (3, 2)), object), (complex(1, -1), None), (((-2.1, 3), (3, 2)), None)])
@pytest.mark.parametrize('mode', _all_modes.keys())
def test_bad_type(self, pad_width, dtype, mode):

Undocumented

@pytest.mark.parametrize('pad_width', [(4, 5, 6, 7), ((1), (2), (3)), ((1, 2), (3, 4), (5, 6)), ((3, 4, 5), (0, 1, 2))])
@pytest.mark.parametrize('mode', _all_modes.keys())
def test_misshaped_pad_width(self, pad_width, mode):

Undocumented

@pytest.mark.parametrize('mode', _all_modes.keys())
def test_misshaped_pad_width_2(self, mode):

Undocumented

@pytest.mark.parametrize('pad_width', [-2, (-2), (3, -1), ((5, 2), (-2, 3)), ((-4), (2))])
@pytest.mark.parametrize('mode', _all_modes.keys())
def test_negative_pad_width(self, pad_width, mode):

Undocumented

def test_pad_width_as_ndarray(self):

Undocumented

@pytest.mark.parametrize('pad_width', [0, (0, 0), ((0, 0), (0, 0))])
@pytest.mark.parametrize('mode', _all_modes.keys())
def test_zero_pad_width(self, pad_width, mode):

Undocumented