Beispiel #1
0
 def test_dict(self):
     result = Result({"a": 1}, False, target_device_id="id")
     self.assertEqual(
         {
             "data": {
                 "a": 1
             },
             "local": False,
             "targetDeviceId": "id"
         }, result.dict())
 def test_dict(self):
     result = Result({'a': 1}, False)
     self.assertEqual(result.dict(), {'data': {'a': 1}, 'local': False})