class documentation

class TestPadWidth: (source)

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): (source)

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): (source)

Undocumented

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

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): (source)

Undocumented

def test_pad_width_as_ndarray(self): (source)

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): (source)

Undocumented