Esempio n. 1
0
 def test_acquire_references_edge_cases(self):
     with self.assertRaises(ValueError):
         acquire_reference(None)
     with self.assertRaises(ValueError):
         acquire_reference(None)
Esempio n. 2
0
 def test_acquire_references_edge_cases(self):
     with self.assertRaises(ValueError):
         acquire_reference(None)
     with self.assertRaises(ValueError):
         acquire_reference(None)
Esempio n. 3
0
 def test_acquire_references_none(self):
     self.assertIsNone(
         acquire_reference('django_hstore_tests.models.SchemaDataBag:2'))
Esempio n. 4
0
 def test_acquire_references_value_error(self):
     with self.assertRaises(ValueError):
         acquire_reference(None)
     with self.assertRaises(ValueError):
         acquire_reference('')
 def test_acquire_references_none(self):
     self.assertIsNone(acquire_reference('django_hstore_tests.models.SchemaDataBag:2'))
 def test_acquire_references_value_error(self):
     with self.assertRaises(ValueError):
         acquire_reference(None)
     with self.assertRaises(ValueError):
         acquire_reference('')