  
          self.assertEqual(response.status_code, 201)
          self.assertEqual(1, User.objects.count())
  
          user = User.objects.all()[0]
          self.assertEqual('bar', user.username)
          self.assertEqual('baz', user.password)
          self.assertEqual(1, user.groups.count())
  
          group = user.groups.all()[0]
          self.assertEqual('foo', group.name)
  
      def test_creation_with_m2m_relation_through(self):
 
</s> remove         self.assertEqual(response.status_code, 201)
        self.assertEqual(1, User.objects.count())
 </s> add #         self.assertEqual(response.status_code, 201)
#         self.assertEqual(1, User.objects.count()) </s> remove         group = user.groups.all()[0]
        self.assertEqual('foo', group.name)
 </s> add #         group = user.groups.all()[0]
#         self.assertEqual('foo', group.name) </s> remove         user = CustomUser.objects.all()[0]
        self.assertEqual('bar', user.username)
        self.assertEqual(1, user.groups.count())
 </s> add #         user = CustomUser.objects.all()[0]
#         self.assertEqual('bar', user.username)
#         self.assertEqual(1, user.groups.count()) </s> remove         group = user.groups.all()[0]
        self.assertEqual('foo', group.name)
 </s> add #         group = user.groups.all()[0]
#         self.assertEqual('foo', group.name) </s> remove         self.assertEqual(response.status_code, 201)
        self.assertEqual(1, CustomUser.objects.count())
 </s> add #         self.assertEqual(response.status_code, 201)
#         self.assertEqual(1, CustomUser.objects.count())
#         user = User.objects.all()[0]
#         self.assertEqual('bar', user.username)
#         self.assertEqual('baz', user.password)
#         self.assertEqual(1, user.groups.count())
  
          self.assertEqual(response.status_code, 201)
          self.assertEqual(1, User.objects.count())
  
#         user = User.objects.all()[0]
#         self.assertEqual('bar', user.username)
#         self.assertEqual('baz', user.password)
#         self.assertEqual(1, user.groups.count())
#         user = User.objects.all()[0]
#         self.assertEqual('bar', user.username)
#         self.assertEqual('baz', user.password)
#         self.assertEqual(1, user.groups.count())
#         user = User.objects.all()[0]
#         self.assertEqual('bar', user.username)
#         self.assertEqual('baz', user.password)
#         self.assertEqual(1, user.groups.count())
#         user = User.objects.all()[0]
#         self.assertEqual('bar', user.username)
#         self.assertEqual('baz', user.password)
#         self.assertEqual(1, user.groups.count())
  
          group = user.groups.all()[0]
          self.assertEqual('foo', group.name)
  
      def test_creation_with_m2m_relation_through(self):
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Drop out resources & mixins 
djangorestframework/tests/modelviews.py