Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
ad506d9b
Kaydet (Commit)
ad506d9b
authored
Tem 10, 2008
tarafından
Beyza Ermiş
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Files test case has been added.
üst
598edffd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
filestest.py
tests/filestest.py
+19
-0
No files found.
tests/filestest.py
0 → 100644
Dosyayı görüntüle @
ad506d9b
import
unittest
import
pisi.files
class
FilesTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
unittest
.
TestCase
.
setUp
(
self
)
def
testFileInfo
(
self
):
file1
=
pisi
.
files
.
FileInfo
(
path
=
'/usr/bin/acpi'
)
file1
.
type
=
'init'
file1
.
size
=
'30'
file2
=
pisi
.
files
.
FileInfo
(
path
=
'/sbin/blkid'
,
type
=
'ctors'
,
size
=
'8'
)
def
testFiles
(
self
):
self
.
files
=
pisi
.
files
.
Files
()
self
.
files
.
read
(
'repos/pardus-2007/system/base/curl/pspec.xml'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment