예제 #1
0
 def test_get_item_kind_invalid(self):
     with assert_raises(TypeError):
         utils.get_item_kind('pizza')
예제 #2
0
 def test_get_item_kind_file(self):
     assert_equal(
         utils.get_item_kind(model.OsfStorageFileRecord()),
         'file',
     )
예제 #3
0
 def test_get_item_kind_folder(self):
     assert_equal(
         utils.get_item_kind(model.OsfStorageFileTree()),
         'folder',
     )
예제 #4
0
 def test_get_item_kind_invalid(self):
     with assert_raises(TypeError):
         utils.get_item_kind('pizza')
예제 #5
0
 def test_get_item_kind_file(self):
     assert_equal(
         utils.get_item_kind(model.OsfStorageFileRecord()),
         'file',
     )
예제 #6
0
 def test_get_item_kind_folder(self):
     assert_equal(
         utils.get_item_kind(model.OsfStorageFileTree()),
         'folder',
     )