def test_from_db_value(self): value = self.field.from_db_value( self.pickle_str, None, None, None) self.assertIsInstance(value, client.Credentials)