          # give everyone model level permissions, as we are not testing those
          everyone = Group.objects.create(name='everyone')
          model_name = BasicPermModel._meta.model_name
          app_label = BasicPermModel._meta.app_label
          f = '{0}_{1}'.format
          perms = {
              'view': f('view', model_name),
              'change': f('change', model_name),
              'delete': f('delete', model_name)
          }
 
</s> remove             perm = '{0}.{1}'.format(app_label, perm)
 </s> add             perm = '{}.{}'.format(app_label, perm) </s> remove         six.text_type('2016-01-10'): '2016-01-10',
 </s> add         str('2016-01-10'): '2016-01-10', </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected) </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected) </s> remove         self.assertEqual(unicode_repr(TestSerializer()), expected)
 </s> add         self.assertEqual(repr(TestSerializer()), expected)
        f = '{}_{}'.format
          # give everyone model level permissions, as we are not testing those
          everyone = Group.objects.create(name='everyone')
          model_name = BasicPermModel._meta.model_name
          app_label = BasicPermModel._meta.app_label
        f = '{}_{}'.format
          perms = {
              'view': f('view', model_name),
              'change': f('change', model_name),
              'delete': f('delete', model_name)
          }
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_permissions.py