def test_is_json_false(self):
     self.assertFalse(JSONContainer.is_json('x'))
Beispiel #2
0
 def test_is_json_true(self):
     self.assertTrue(JSONContainer.is_json('1'))
     self.assertTrue(JSONContainer.is_json('"abc"'))
     self.assertTrue(JSONContainer.is_json('{"abc": 3}'))
 def test_is_json_true(self):
     self.assertTrue(JSONContainer.is_json('1'))
     self.assertTrue(JSONContainer.is_json('"abc"'))
     self.assertTrue(JSONContainer.is_json('{"abc": 3}'))
Beispiel #4
0
 def test_is_json_false(self):
     self.assertFalse(JSONContainer.is_json('x'))