Пример #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',
     )