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