def test_AsVersionNotEmpty(self):
     a1 = Activity(id='test1', object_type='Activity')
     a2 = Activity(id='test2', object_type='Activity')
     alist = ActivityList([a1, a2])
     check = alist.as_version()
     self.assertEqual(check,
                      [{"id": "test1", "objectType": "Activity"}, {"id": "test2", "objectType": "Activity"}])
Esempio n. 2
0
 def test_AsVersionNotEmpty(self):
     a1 = Activity(id='test1', object_type='Activity')
     a2 = Activity(id='test2', object_type='Activity')
     alist = ActivityList([a1, a2])
     check = alist.as_version()
     self.assertEqual(check,
                      [{"id": "test1", "objectType": "Activity"}, {"id": "test2", "objectType": "Activity"}])
 def test_AsVersionEmpty(self):
     alist = ActivityList()
     check = alist.as_version()
     self.assertEqual(check, [])
 def test_AsVersionEmpty(self):
     alist = ActivityList()
     check = alist.as_version()
     self.assertEqual(check, [])