コード例 #1
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_string_space(self):
     self.assertEqual(b"5:bla l ", marshall("bla l"))
コード例 #2
0
 def send_msg(self, data):
     marshalled_data = marshall(data)
     # self.mutter("OUT: %r" % marshalled_data)
     self.send_fn(marshalled_data)
コード例 #3
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_string(self):
     self.assertEqual(b"3:foo ", marshall("foo"))
コード例 #4
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_list_nested(self):
     self.assertEqual(b"( ( ( 3 ) 4 ) ) ", marshall([[[3], 4]]))
コード例 #5
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_list_mixed(self):
     self.assertEqual(b"( 1 3 4 3:str ) ", marshall([1,3,4,"str"]))
コード例 #6
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_literal(self):
     self.assertEqual(b"foo ", marshall(literal("foo")))
コード例 #7
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_int(self):
     self.assertEqual(b"1 ", marshall(1))
コード例 #8
0
ファイル: test_marshall.py プロジェクト: vadmium/subvertpy
 def test_marshall_list(self):
     self.assertEqual(b"( 1 2 3 4 ) ", marshall([1,2,3,4]))
コード例 #9
0
 def test_marshall_list_nested(self):
     self.assertEqual("( ( ( 3 ) 4 ) ) ", marshall([[[3], 4]]))
コード例 #10
0
 def test_marshall_string_space(self):
     self.assertEqual("5:bla l ", marshall("bla l"))
コード例 #11
0
 def test_marshall_string(self):
     self.assertEqual("3:foo ", marshall("foo"))
コード例 #12
0
 def test_marshall_literal(self):
     self.assertEqual("foo ", marshall(literal("foo")))
コード例 #13
0
 def test_marshall_list_mixed(self):
     self.assertEqual("( 1 3 4 3:str ) ", marshall([1, 3, 4, "str"]))
コード例 #14
0
 def test_marshall_list(self):
     self.assertEqual("( 1 2 3 4 ) ", marshall([1, 2, 3, 4]))
コード例 #15
0
 def test_marshall_int(self):
     self.assertEqual("1 ", marshall(1))