Adjusted refactoring of vendor checks.

Thanks Shai for the thorough review.
This commit is contained in:
Aymeric Augustin 2014-05-10 14:40:42 +02:00
parent a5de0df58b
commit fb90b7cda2
6 changed files with 11 additions and 10 deletions

View file

@ -449,6 +449,7 @@ class SerializerTests(TestCase):
self.assertEqual(base_data, proxy_proxy_data.replace('proxy', ''))
@skipUnlessDBFeature('supports_binary_field')
def serializerTest(format, self):
# Create all the objects defined in the test data
@ -481,8 +482,6 @@ def serializerTest(format, self):
for klass, count in instance_count.items():
self.assertEqual(count, klass.objects.count())
serializerTest = skipUnlessDBFeature('supports_binary_field')(serializerTest)
def naturalKeySerializerTest(format, self):
# Create all the objects defined in the test data