예제 #1
0
 def test_create_value_non_string(self):
     opt = SchemaOption("key", 1234)
     assert opt.create() == "key=1234"
예제 #2
0
 def test_create_value_string_without_spaces(self):
     opt = SchemaOption("key", "value")
     assert opt.create() == "key=value"
예제 #3
0
 def test_create_no_name(self):
     opt = SchemaOption(None, "value")
     assert opt.create() == "value"
예제 #4
0
 def test_create_no_value(self):
     opt = SchemaOption("key")
     assert opt.create() == ""
예제 #5
0
 def test_create_value_string_without_spaces(self):
   opt = SchemaOption('key', 'value')
   assert opt.create() == 'key=value'
예제 #6
0
 def test_create_value_string_with_spaces(self):
   opt = SchemaOption('key', 'my value')
   assert opt.create() == "key='my value'"
예제 #7
0
 def test_create_value_non_string(self):
   opt = SchemaOption('key', 1234)
   assert opt.create() == 'key=1234'
예제 #8
0
 def test_create_no_value(self):
   opt = SchemaOption('key')
   assert opt.create() == ''
예제 #9
0
 def test_create_no_name(self):
   opt = SchemaOption(None, 'value')
   assert opt.create() == 'value'