Пример #1
0
 def test_datatype_json_with_dict(self):
     self.assertIsNone(assertions.datatype_json('whatever', {'foo': 'bar'}))
Пример #2
0
 def test_datatype_json_with_float(self):
     self.assertIsNone(assertions.datatype_json('whatever', 1.0))
Пример #3
0
 def test_datatype_json_with_bool(self):
     self.assertIsNone(assertions.datatype_json('whatever', True))
Пример #4
0
 def test_datatype_json_with_list(self):
     self.assertIsNone(assertions.datatype_json(
         'whatever', [{'foo': 'bar'}]))
Пример #5
0
 def test_datatype_json_with_str(self):
     self.assertIsNone(assertions.datatype_json('whatever', 'hi'))
Пример #6
0
 def test_datatype_json_with_dict(self):
     self.assertIsNone(assertions.datatype_json(
         'whatever', {'foo': 'bar'}))
Пример #7
0
 def test_datatype_json_with_bool(self):
     self.assertIsNone(assertions.datatype_json('whatever', True))
Пример #8
0
 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'
         }]))