          group = Group(name='foo')
          group.save()
          self.assertEqual(0, User.objects.count())
  
          response = self.client.post('/users/', {'username': 'bar', 'password': 'baz', 'groups': [group.id]})
  
          self.assertEqual(response.status_code, 201)
          self.assertEqual(1, User.objects.count())
  
          user = User.objects.all()[0]
 
</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     def test_creation_with_m2m_relation(self):
        """Ensure that a model object with a m2m relation can be created"""
        group = Group(name='foo')
        group.save()
        self.assertEqual(0, User.objects.count())
 </s> add #     def test_creation_with_m2m_relation(self):
#         """Ensure that a model object with a m2m relation can be created"""
#         group = Group(name='foo')
#         group.save()
#         self.assertEqual(0, User.objects.count()) </s> remove         response = self.client.post('/customusers/', {'username': 'bar', 'groups': [group.id]})
 </s> add #         response = self.client.post('/customusers/', {'username': 'bar', 'groups': [group.id]}) </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()) </s> remove     def test_creation_with_m2m_relation_through(self):
        """
        Ensure that a model object with a m2m relation can be created where that
        relation uses a through table
        """
        group = Group(name='foo')
        group.save()
        self.assertEqual(0, User.objects.count())
 </s> add #     def test_creation_with_m2m_relation_through(self):
#         """
#         Ensure that a model object with a m2m relation can be created where that
#         relation uses a through table
#         """
#         group = Group(name='foo')
#         group.save()
#         self.assertEqual(0, User.objects.count())
#         response = self.client.post('/users/', {'username': 'bar', 'password': 'baz', 'groups': [group.id]})
          group = Group(name='foo')
          group.save()
          self.assertEqual(0, User.objects.count())
  
#         response = self.client.post('/users/', {'username': 'bar', 'password': 'baz', 'groups': [group.id]})
  
          self.assertEqual(response.status_code, 201)
          self.assertEqual(1, User.objects.count())
  
          user = User.objects.all()[0]
keep keep keep keep replace keep keep keep keep keep
 Drop out resources & mixins 
djangorestframework/tests/modelviews.py