예제 #1
0
 def test_int(self):
     self.assertEqual(utils._serialize(12345), '12345')
예제 #2
0
 def test_str(self):
     self.assertEqual(utils._serialize("""spam/%="'spam"""),
                      '"spam%2F%25%3D%22%27spam"')
예제 #3
0
 def test_true(self):
     self.assertEqual(utils._serialize(True), 'true')
예제 #4
0
 def test_false(self):
     self.assertEqual(utils._serialize(False), 'false')
예제 #5
0
 def test_str(self):
     self.assertEqual(utils._serialize("""spam/%="'spam"""),
                      '"spam%2F%25%3D%22%27spam"')
예제 #6
0
 def test_none(self):
     self.assertEqual(utils._serialize(None), 'null')
예제 #7
0
 def test_long(self):
     self.assertEqual(utils._serialize(12345L), '12345')
예제 #8
0
 def test_int(self):
     self.assertEqual(utils._serialize(12345), '12345')
예제 #9
0
 def test_false(self):
     self.assertEqual(utils._serialize(False), 'false')
예제 #10
0
 def test_true(self):
     self.assertEqual(utils._serialize(True), 'true')
예제 #11
0
 def test_none(self):
     self.assertEqual(utils._serialize(None), 'null')