def test_get_item_kind_invalid(self): with assert_raises(TypeError): utils.get_item_kind('pizza')
def test_get_item_kind_file(self): assert_equal( utils.get_item_kind(model.OsfStorageFileRecord()), 'file', )
def test_get_item_kind_folder(self): assert_equal( utils.get_item_kind(model.OsfStorageFileTree()), 'folder', )