From 94400e0df16f6a69b7ca827fdc5c1bd80dadc0f3 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Thu, 26 Apr 2018 15:21:08 +0200
Subject: [PATCH] [dataformats][tests][api] Fix refreence type for bytes
 comparison

---
 beat/web/dataformats/tests/tests_api.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/beat/web/dataformats/tests/tests_api.py b/beat/web/dataformats/tests/tests_api.py
index 008b72729..cda175bef 100644
--- a/beat/web/dataformats/tests/tests_api.py
+++ b/beat/web/dataformats/tests/tests_api.py
@@ -572,7 +572,7 @@ class DataFormatUpdate(DataFormatsAPIBase):
         self.checkResponse(response, 204)
 
         dataformat = DataFormat.objects.get(author__username='johndoe', name='format_private')
-        self.assertEqual(dataformat.description, 'blah')
+        self.assertEqual(dataformat.description, b'blah')
 
         storage = Storage(settings.PREFIX,
                           dataformat.fullname())
@@ -592,7 +592,7 @@ class DataFormatUpdate(DataFormatsAPIBase):
         self.checkResponse(response, 204)
 
         dataformat = DataFormat.objects.get(author__username='johndoe', name='format1')
-        self.assertEqual(dataformat.description, 'blah')
+        self.assertEqual(dataformat.description, b'blah')
 
 
     def test_successfull_update_of_declaration_only(self):
-- 
GitLab