Example #1
0
 def test_datatype_json_with_dict(self):
     self.assertIsNone(assertions.datatype_json('whatever', {'foo': 'bar'}))
Example #2
0
 def test_datatype_json_with_float(self):
     self.assertIsNone(assertions.datatype_json('whatever', 1.0))
Example #3
0
 def test_datatype_json_with_bool(self):
     self.assertIsNone(assertions.datatype_json('whatever', True))
 def test_datatype_json_with_list(self):
     self.assertIsNone(assertions.datatype_json(
         'whatever', [{'foo': 'bar'}]))
 def test_datatype_json_with_str(self):
     self.assertIsNone(assertions.datatype_json('whatever', 'hi'))
 def test_datatype_json_with_dict(self):
     self.assertIsNone(assertions.datatype_json(
         'whatever', {'foo': 'bar'}))
 def test_datatype_json_with_bool(self):
     self.assertIsNone(assertions.datatype_json('whatever', True))
 def test_datatype_json_with_float(self):
     self.assertIsNone(assertions.datatype_json('whatever', 1.0))
 def test_datatype_json_with_str(self):
     self.assertIsNone(assertions.datatype_json('whatever', 'hi'))
 def test_datatype_json_with_list(self):
     self.assertIsNone(
         assertions.datatype_json('whatever', [{
             'foo': 'bar'
         }]))