Пример #1
0
 def test_str(self):
     self.assertEqual(utils._deserialize("'spam%2F%25%3d%22%27spam'"),
                      """spam/%="'spam""")
Пример #2
0
 def test_false(self):
     self.assertEqual(utils._deserialize('fAlSe'), False)
Пример #3
0
 def test_int(self):
     self.assertEqual(utils._deserialize('12345'), 12345)
Пример #4
0
 def test_none(self):
     self.assertEqual(utils._deserialize('nUlL'), None)
Пример #5
0
 def test_true(self):
     self.assertEqual(utils._deserialize('TrUe'), True)
Пример #6
0
 def test_str(self):
     self.assertEqual(utils._deserialize("'spam%2F%25%3d%22%27spam'"),
                      """spam/%="'spam""")
Пример #7
0
 def test_int(self):
     self.assertEqual(utils._deserialize('12345'), 12345)
Пример #8
0
 def test_false(self):
     self.assertEqual(utils._deserialize('fAlSe'), False)
Пример #9
0
 def test_true(self):
     self.assertEqual(utils._deserialize('TrUe'), True)
Пример #10
0
 def test_none(self):
     self.assertEqual(utils._deserialize('nUlL'), None)