Beispiel #1
0
 def setUp(self):
     super(RedirectTests, self).setUp()
     self.bundle = fixtures.create_bundle(self._PATHNAME, self._BUNDLE_TEXT, self._BUNDLE_NAME)
     self.bundle.deserialize()
     self.assertTrue(self.bundle.is_deserialized)
     if not hasattr(self, 'client') and hasattr(self, 'client_class'):
         self.client = self.client_class()
Beispiel #2
0
 def setUp(self):
     super(RedirectTests, self).setUp()
     self.bundle = fixtures.create_bundle(self._PATHNAME, self._BUNDLE_TEXT,
                                          self._BUNDLE_NAME)
     self.bundle.deserialize()
     self.assertTrue(self.bundle.is_deserialized)
     if not hasattr(self, 'client') and hasattr(self, 'client_class'):
         self.client = self.client_class()
 def setUp(self):
     super(Bundle13DeserializerSuccessTests, self).setUp()
     self.s_bundle = fixtures.create_bundle(
         '/anonymous/', self.json_text, 'bundle.json')
     # Decompose the data here
     self.s_bundle.deserialize(prefer_evolution=False)
     if not self.s_bundle.is_deserialized:
         raise AssertionError("Deserialzation failed:" + self.s_bundle.deserialization_error.get().traceback)
     # Link to test run for easier testing
     self.s_test = self.s_bundle.test_runs.get()
 def setUp(self):
     super(BundleDeserializerSuccessTests, self).setUp()
     self.s_bundle = fixtures.create_bundle(
         '/anonymous/', self.json_text, 'bundle.json')
     # Decompose the data here
     self.s_bundle.deserialize(prefer_evolution=self.prefer_evolution)
     if not self.s_bundle.is_deserialized:
         raise AssertionError("Deserialzation failed:" + self.s_bundle.deserialization_error.get().traceback)
     # Here we trick a little, since there is just one of each of
     # those models we can select them like this, the tests below
     # validate that we did not pick up some random object by
     # matching all the properties.
     self.s_test = Test.objects.all()[0]
     self.s_test_case = TestCaseModel.objects.all()[0]
     self.s_test_run = TestRun.objects.all()[0]
     self.s_test_result = TestResult.objects.all()[0]
     self.s_attachment = Attachment.objects.all()[0]
 def setUp(self):
     super(BundleDeserializationTests, self).setUp()
     self.bundle = fixtures.create_bundle(self.pathname, self.content,
                                          self.content_filename)
     self.mocker = Mocker()
Beispiel #6
0
 def setUp(self):
     super(RedirectTests, self).setUp()
     self.bundle = fixtures.create_bundle(self._PATHNAME, self._BUNDLE_TEXT,
                                          self._BUNDLE_NAME)
     self.bundle.deserialize()
     self.assertTrue(self.bundle.is_deserialized)
 def setUp(self):
     super(BundleDeserializerAtomicityTestCase, self).setUp()
     self.s_bundle = fixtures.create_bundle(
         '/anonymous/', self.json_text, 'bundle.json')
Beispiel #8
0
 def setUp(self):
     super(BundleDeserializationTests, self).setUp()
     self.bundle = fixtures.create_bundle(
         self.pathname, self.content, self.content_filename)
     self.mocker = Mocker()
 def setUp(self):
     super(RedirectTests, self).setUp()
     self.bundle = fixtures.create_bundle(self._PATHNAME, self._BUNDLE_TEXT, self._BUNDLE_NAME)
     self.bundle.deserialize()
     self.assertTrue(self.bundle.is_deserialized)