Skip to content

Commit f7d1beb

Browse files
committed
Add unit tests
1 parent c7f4927 commit f7d1beb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

pandas/tests/test_panel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,6 +2429,10 @@ def test_all_any_unhandled(self):
24292429
pytest.raises(NotImplementedError, self.panel.all, bool_only=True)
24302430
pytest.raises(NotImplementedError, self.panel.any, bool_only=True)
24312431

2432+
def test_sort_values(self):
2433+
pytest.raises(NotImplementedError, self.panel.sort_values)
2434+
pytest.raises(NotImplementedError, self.panel.sort_values, 'ItemA')
2435+
24322436

24332437
class TestLongPanel(object):
24342438
"""

pandas/tests/test_panel4d.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,3 +939,8 @@ def test_rename(self):
939939

940940
def test_get_attr(self):
941941
tm.assert_panel_equal(self.panel4d['l1'], self.panel4d.l1)
942+
943+
944+
def test_sort_values(self):
945+
pytest.raises(NotImplementedError, self.panel4d.sort_values)
946+
pytest.raises(NotImplementedError, self.panel4d.sort_values, 'ItemA')

0 commit comments

Comments
 (0)