Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321944
test_convert.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
599 B
Referenced Files
None
Subscribers
None
test_convert.py
View Options
#!/usr/bin/env python3
from
importlib.machinery
import
SourceFileLoader
import
unittest
salt_test_case
=
SourceFileLoader
(
"salt_test_case"
,
"salt_test_case.py"
)
.
load_module
()
convert
=
SourceFileLoader
(
"rust"
,
"../_modules/convert.py"
)
.
load_module
()
class
Testinstance
(
unittest
.
TestCase
,
salt_test_case
.
SaltTestCase
):
def
setUp
(
self
):
self
.
initialize_mocks
()
self
.
instance
=
convert
def
test_to_flags
(
self
):
features
=
[
"foo"
,
"bar"
]
self
.
assertEqual
(
"enable-foo enable-bar"
,
convert
.
to_flags
(
features
))
if
__name__
==
"__main__"
:
unittest
.
main
()
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Tue, May 13, 16:56 (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2571632
Default Alt Text
test_convert.py (599 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment