repo.or.cz
/
libvirt-python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Post-release version bump to 11.1.0
[libvirt-python.git]
/
tests
/
test_network.py
blob
3d47f3507d39d18b216c131376608e9c2edd23e9
1
import
unittest
2
import
libvirt
3
4
5
class
TestLibvirtNetwork
(
unittest
.
TestCase
):
6
def
setUp
(
self
):
7
self
.
conn
=
libvirt
.
open
(
"test:///default"
)
8
self
.
net
=
self
.
conn
.
networkLookupByName
(
"default"
)
9
10
def
tearDown
(
self
):
11
self
.
net
=
None
12
self
.
conn
=
None
13
14
def
testAttr
(
self
):
15
self
.
assertEqual
(
self
.
net
.
name
(),
"default"
)