コード例 #1
0
ファイル: tests.py プロジェクト: xkmato/XForm2RapidproFlow
 def test_as_json(self):
     action_set = ActionSet.create_from_input(self.input, 0, self.flow)
     _json = action_set.as_json(False)
     self.assertEqual(_json["uuid"], unicode(action_set.uuid))
コード例 #2
0
ファイル: tests.py プロジェクト: xkmato/XForm2RapidproFlow
 def test_create_from_input(self):
     n = ActionSet.objects.count()
     ActionSet.create_from_input(self.input, 0, self.flow)
     self.assertEqual(ActionSet.objects.count(), n + 1)