コード例 #1
0
 def test_convert_unicode(self):
     text = u'param: "\U0001f604"'.encode('utf-8')
     self.assertEqual(
         common._convert_config(text, test_config_pb2.Config),
         test_config_pb2.Config(param=u'\U0001f604'),
     )
コード例 #2
0
 def test_convert_empty(self):
     self.assertIsNotNone(common._convert_config('',
                                                 test_config_pb2.Config))
コード例 #3
0
ファイル: common_test.py プロジェクト: mellowdistrict/luci-py
 def test_convert_empty(self):
   self.assertIsNotNone(common._convert_config('', test_config_pb2.Config))
コード例 #4
0
 def test_convert_none(self):
     self.assertIsNone(common._convert_config(None, test_config_pb2.Config))
コード例 #5
0
ファイル: common_test.py プロジェクト: mellowdistrict/luci-py
 def test_convert_none(self):
   self.assertIsNone(common._convert_config(None, test_config_pb2.Config))