Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942626
test_commands.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
530 B
Referenced Files
None
Subscribers
None
test_commands.py
View Options
from
nasqueron_datasources.pipelines
import
commands
import
unittest
class
TestCommands
(
unittest
.
TestCase
):
def
test_parse_environment
(
self
):
expected
=
{
"FOO"
:
"This is a sentence."
,
"QUUX"
:
"666"
,
# everything is parsed as a string
"BAR"
:
""
,
# an empty string is used instead of None for empty values
}
with
open
(
"files/env"
)
as
fd
:
self
.
assertDictEqual
(
expected
,
commands
.
parse_environment
(
fd
))
if
__name__
==
"__main__"
:
unittest
.
main
()
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Dec 26, 17:07 (20 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315283
Default Alt Text
test_commands.py (530 B)
Attached To
Mode
rDS Nasqueron Datasources
Attached
Detach File
Event Timeline
Log In to Comment