From 98b8e2ecdac315fdcdb09a8896996bd34e333f66 Mon Sep 17 00:00:00 2001 From: Kirit Thadaka Date: Tue, 5 Dec 2017 19:07:29 +0530 Subject: [PATCH] Made test for thorough --- notebook/services/contents/tests/test_contents_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/notebook/services/contents/tests/test_contents_api.py b/notebook/services/contents/tests/test_contents_api.py index 46402323c..cfea8cb5f 100644 --- a/notebook/services/contents/tests/test_contents_api.py +++ b/notebook/services/contents/tests/test_contents_api.py @@ -525,8 +525,9 @@ class APITest(NotebookTestBase): def test_delete_non_empty_dir(self): # Test that non empty directory can be deleted self.api.delete(u'å b') - # Assertion will pass only if self.api.delete does not throw and error - assert True + # Check if directory has actually been deleted + with assert_http_error(404): + self.api.list(u'å b') def test_rename(self): resp = self.api.rename('foo/a.ipynb', 'foo/z.ipynb')